aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/IRegionData.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/IRegionData.cs b/OpenSim/Data/IRegionData.cs
index 4761a7a..0068daa 100644
--- a/OpenSim/Data/IRegionData.cs
+++ b/OpenSim/Data/IRegionData.cs
@@ -47,19 +47,19 @@ namespace OpenSim.Data
47 /// The position in meters of this region. 47 /// The position in meters of this region.
48 /// </summary> 48 /// </summary>
49 public int posY; 49 public int posY;
50 50
51 public int sizeX; 51 public int sizeX;
52 public int sizeY; 52 public int sizeY;
53 53
54 /// <summary> 54 /// <summary>
55 /// Return the x-coordinate of this region. We currently assume that every region is the same size. 55 /// Return the x-coordinate of this region.
56 /// </summary> 56 /// </summary>
57 public int coordX { get { return (sizeX != 0) ? posX / sizeX : -1; } } 57 public int coordX { get { return (sizeX != 0) ? posX / (int)Constants.RegionSize : -1; } }
58 58
59 /// <summary> 59 /// <summary>
60 /// Return the y-coordinate of this region. We currently assume that every region is the same size. 60 /// Return the y-coordinate of this region.
61 /// </summary> 61 /// </summary>
62 public int coordY { get { return (sizeY != 0) ? posY / sizeY : -1; } } 62 public int coordY { get { return (sizeY != 0) ? posY / (int)Constants.RegionSize : -1; } }
63 63
64 public Dictionary<string, object> Data; 64 public Dictionary<string, object> Data;
65 } 65 }