aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2017-04-03 18:09:48 +0100
committerUbitUmarov2017-04-03 18:09:48 +0100
commit4bb27917f4c4caf8eece794b80d5cf89e5e1398c (patch)
tree6e3cd1914198bd2a90202e600839818085ccc649 /OpenSim
parentfix typo (diff)
downloadopensim-SC-4bb27917f4c4caf8eece794b80d5cf89e5e1398c.zip
opensim-SC-4bb27917f4c4caf8eece794b80d5cf89e5e1398c.tar.gz
opensim-SC-4bb27917f4c4caf8eece794b80d5cf89e5e1398c.tar.bz2
opensim-SC-4bb27917f4c4caf8eece794b80d5cf89e5e1398c.tar.xz
oops
Diffstat (limited to 'OpenSim')
-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;