From 95981776dda88f97c4a1d016e1e266e8ff1d54aa Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 28 Sep 2009 20:11:10 -0700 Subject: [PATCH] Fixed bug in Check4096 (HG). --- .../CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs index 1eb481e0a7..148331b8c1 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs @@ -554,8 +554,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid x = (int)(ux / Constants.RegionSize); y = (int)(uy / Constants.RegionSize); - if ((Math.Abs((int)(m_scene.RegionInfo.RegionLocX / Constants.RegionSize) - x) >= 4096) || - (Math.Abs((int)(m_scene.RegionInfo.RegionLocY / Constants.RegionSize) - y) >= 4096)) + if ((Math.Abs((int)m_scene.RegionInfo.RegionLocX - x) >= 4096) || + (Math.Abs((int)m_scene.RegionInfo.RegionLocY - y) >= 4096)) { return false; }