aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/LandManagement/LandManager.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-08-15 16:17:40 +0000
committerAdam Frisby2007-08-15 16:17:40 +0000
commitc170c60df7e1d239cd4e8664074523a43ed04bf7 (patch)
tree6137e98c0d4d8ce9d77ffa5d5c0f7653e7ad7c46 /OpenSim/Region/Environment/LandManagement/LandManager.cs
parentTemporary fix for the region crossing crash, Although we need to start to cha... (diff)
downloadopensim-SC-c170c60df7e1d239cd4e8664074523a43ed04bf7.zip
opensim-SC-c170c60df7e1d239cd4e8664074523a43ed04bf7.tar.gz
opensim-SC-c170c60df7e1d239cd4e8664074523a43ed04bf7.tar.bz2
opensim-SC-c170c60df7e1d239cd4e8664074523a43ed04bf7.tar.xz
* Division of parcel boundaries occurs in double space rather than decimal.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/LandManagement/LandManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs
index 5bc975c..1d82fa9 100644
--- a/OpenSim/Region/Environment/LandManagement/LandManager.cs
+++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs
@@ -202,8 +202,8 @@ namespace OpenSim.Region.Environment.LandManagement
202 /// <returns>Land object at the point supplied</returns> 202 /// <returns>Land object at the point supplied</returns>
203 public Land getLandObject(float x_float, float y_float) 203 public Land getLandObject(float x_float, float y_float)
204 { 204 {
205 int x = Convert.ToInt32(Math.Floor(Convert.ToDecimal(x_float) / Convert.ToDecimal(4.0))); 205 int x = Convert.ToInt32(Math.Floor(Convert.ToDouble(x_float) / Convert.ToDouble(4.0)));
206 int y = Convert.ToInt32(Math.Floor(Convert.ToDecimal(y_float) / Convert.ToDecimal(4.0))); 206 int y = Convert.ToInt32(Math.Floor(Convert.ToDouble(y_float) / Convert.ToDouble(4.0)));
207 207
208 if (x > 63 || y > 63 || x < 0 || y < 0) 208 if (x > 63 || y > 63 || x < 0 || y < 0)
209 { 209 {