diff options
author | Robert Adams | 2015-03-28 07:50:04 -0700 |
---|---|---|
committer | Robert Adams | 2015-03-28 07:50:04 -0700 |
commit | 08c72a8dc1e54114559521a6c2952905ecf6f105 (patch) | |
tree | cdc1f379109500504516755fcd3d4e9c6c4e3218 /OpenSim/Data | |
parent | varregion: refactor use of 'double heightmap[,]' into references to new class... (diff) | |
download | opensim-SC_OLD-08c72a8dc1e54114559521a6c2952905ecf6f105.zip opensim-SC_OLD-08c72a8dc1e54114559521a6c2952905ecf6f105.tar.gz opensim-SC_OLD-08c72a8dc1e54114559521a6c2952905ecf6f105.tar.bz2 opensim-SC_OLD-08c72a8dc1e54114559521a6c2952905ecf6f105.tar.xz |
varregion: remove use of Constants.RegionSize is various places.
More use of the Util routines for conversion of region handles into addresses.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/IRegionData.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Data/IRegionData.cs b/OpenSim/Data/IRegionData.cs index 463c621..ca9b327 100644 --- a/OpenSim/Data/IRegionData.cs +++ b/OpenSim/Data/IRegionData.cs | |||
@@ -52,14 +52,14 @@ namespace OpenSim.Data | |||
52 | public int sizeY; | 52 | public int sizeY; |
53 | 53 | ||
54 | /// <summary> | 54 | /// <summary> |
55 | /// Return the x-coordinate of this region. | 55 | /// Return the x-coordinate of this region in region units. |
56 | /// </summary> | 56 | /// </summary> |
57 | public int coordX { get { return posX / (int)Constants.RegionSize; } } | 57 | public int coordX { get { return (int)Util.WorldToRegionLoc((uint)posX); } } |
58 | 58 | ||
59 | /// <summary> | 59 | /// <summary> |
60 | /// Return the y-coordinate of this region. | 60 | /// Return the y-coordinate of this region in region units. |
61 | /// </summary> | 61 | /// </summary> |
62 | public int coordY { get { return posY / (int)Constants.RegionSize; } } | 62 | public int coordY { get { return (int)Util.WorldToRegionLoc((uint)posY); } } |
63 | 63 | ||
64 | public Dictionary<string, object> Data; | 64 | public Dictionary<string, object> Data; |
65 | } | 65 | } |