From 4bb27917f4c4caf8eece794b80d5cf89e5e1398c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 3 Apr 2017 18:09:48 +0100 Subject: [PATCH] oops --- OpenSim/Region/Framework/Scenes/Scene.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 0fb62a4107..715ae5cc30 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -2985,12 +2985,12 @@ namespace OpenSim.Region.Framework.Scenes // Return 'true' if position inside region. public bool PositionIsInCurrentRegion(Vector3 pos) { - int xx = (int)pos.X; - if (xx < 0 || xx >= RegionInfo.RegionSizeX) + float t = pos.X; + if (t < 0 || t >= RegionInfo.RegionSizeX) return false; - int yy = (int)pos.Y; - if (yy < 0 || yy >= RegionInfo.RegionSizeY) + t = pos.Y; + if (t < 0 || t >= RegionInfo.RegionSizeY) return false; return true;