diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 37353c1..17f6301 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3733,7 +3733,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3733 | 3733 | ||
3734 | // m_log.Debug("---> x: " + x + "; newx:" + newRegionX + "; Abs:" + (int)Math.Abs((int)(x - newRegionX))); | 3734 | // m_log.Debug("---> x: " + x + "; newx:" + newRegionX + "; Abs:" + (int)Math.Abs((int)(x - newRegionX))); |
3735 | // m_log.Debug("---> y: " + y + "; newy:" + newRegionY + "; Abs:" + (int)Math.Abs((int)(y - newRegionY))); | 3735 | // m_log.Debug("---> y: " + y + "; newy:" + newRegionY + "; Abs:" + (int)Math.Abs((int)(y - newRegionY))); |
3736 | if (Util.IsOutsideView(DrawDistance, x, newRegionX, y, newRegionY)) | 3736 | float dist = (float)Math.Max(Scene.DefaultDrawDistance, |
3737 | (float)Math.Max(Scene.RegionInfo.RegionSizeX, Scene.RegionInfo.RegionSizeY)); | ||
3738 | if (Util.IsOutsideView(dist, x, newRegionX, y, newRegionY)) | ||
3737 | { | 3739 | { |
3738 | byebyeRegions.Add(handle); | 3740 | byebyeRegions.Add(handle); |
3739 | } | 3741 | } |