diff options
author | Adam Frisby | 2008-02-14 12:16:33 +0000 |
---|---|---|
committer | Adam Frisby | 2008-02-14 12:16:33 +0000 |
commit | f3afa68a2af6ad5999e6efe3e4725cb17293108d (patch) | |
tree | 4253a44bee39976d6b3dd6813439f5966cf12632 /OpenSim/Framework/RegionHandle.cs | |
parent | * Exposed AddHandlers in response to mantis #534. Thanks, kmeisthax! (diff) | |
download | opensim-SC_OLD-f3afa68a2af6ad5999e6efe3e4725cb17293108d.zip opensim-SC_OLD-f3afa68a2af6ad5999e6efe3e4725cb17293108d.tar.gz opensim-SC_OLD-f3afa68a2af6ad5999e6efe3e4725cb17293108d.tar.bz2 opensim-SC_OLD-f3afa68a2af6ad5999e6efe3e4725cb17293108d.tar.xz |
* 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.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/RegionHandle.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/RegionHandle.cs b/OpenSim/Framework/RegionHandle.cs index 440aaf6..9cfe53d 100644 --- a/OpenSim/Framework/RegionHandle.cs +++ b/OpenSim/Framework/RegionHandle.cs | |||
@@ -63,8 +63,8 @@ namespace OpenSim.Framework | |||
63 | uint ny = (uint) y; | 63 | uint ny = (uint) y; |
64 | 64 | ||
65 | // Multiply grid coords to get region coords | 65 | // Multiply grid coords to get region coords |
66 | nx *= 256; | 66 | nx *= Constants.RegionSize; |
67 | ny *= 256; | 67 | ny *= Constants.RegionSize; |
68 | 68 | ||
69 | // Stuff the IP address in too | 69 | // Stuff the IP address in too |
70 | nx = (uint) a << 16; | 70 | nx = (uint) a << 16; |
@@ -80,7 +80,7 @@ namespace OpenSim.Framework | |||
80 | /// <param name="y">Grid Y Coordinate</param> | 80 | /// <param name="y">Grid Y Coordinate</param> |
81 | public RegionHandle(uint x, uint y) | 81 | public RegionHandle(uint x, uint y) |
82 | { | 82 | { |
83 | handle = ((x*256) << 32) | (y*256); | 83 | handle = ((x * Constants.RegionSize) << 32) | (y * Constants.RegionSize); |
84 | } | 84 | } |
85 | 85 | ||
86 | /// <summary> | 86 | /// <summary> |