aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 0fb62a4..715ae5c 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2985,12 +2985,12 @@ namespace OpenSim.Region.Framework.Scenes
2985 // Return 'true' if position inside region. 2985 // Return 'true' if position inside region.
2986 public bool PositionIsInCurrentRegion(Vector3 pos) 2986 public bool PositionIsInCurrentRegion(Vector3 pos)
2987 { 2987 {
2988 int xx = (int)pos.X; 2988 float t = pos.X;
2989 if (xx < 0 || xx >= RegionInfo.RegionSizeX) 2989 if (t < 0 || t >= RegionInfo.RegionSizeX)
2990 return false; 2990 return false;
2991 2991
2992 int yy = (int)pos.Y; 2992 t = pos.Y;
2993 if (yy < 0 || yy >= RegionInfo.RegionSizeY) 2993 if (t < 0 || t >= RegionInfo.RegionSizeY)
2994 return false; 2994 return false;
2995 2995
2996 return true; 2996 return true;