mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* Made new Framework.Constants class, added RegionSize member.
* Converted all instances of "256" spotted to use RegionSize instead. Some approximations used for border crossings (ie 255.9f) are still using that value, but should be updated to use something based on RegionSize. * Moving Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule - nonfunctional, but will be soon.
This commit is contained in:
@@ -70,7 +70,7 @@ namespace OpenSim.Framework
|
||||
/// </summary>
|
||||
public ulong homeRegion
|
||||
{
|
||||
get { return Helpers.UIntsToLong((homeRegionX*256), (homeRegionY*256)); }
|
||||
get { return Helpers.UIntsToLong((homeRegionX * (uint)Constants.RegionSize), (homeRegionY * (uint)Constants.RegionSize)); }
|
||||
set
|
||||
{
|
||||
homeRegionX = (uint) (value >> 40);
|
||||
|
||||
Reference in New Issue
Block a user