diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsIn')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs index 2fd21be..551947b 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs | |||
@@ -128,9 +128,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Land | |||
128 | { | 128 | { |
129 | m_log.DebugFormat("[LAND IN CONNECTOR]: GetLandData for {0}. Count = {1}", | 129 | m_log.DebugFormat("[LAND IN CONNECTOR]: GetLandData for {0}. Count = {1}", |
130 | regionHandle, m_Scenes.Count); | 130 | regionHandle, m_Scenes.Count); |
131 | |||
132 | uint rx = 0, ry = 0; | ||
133 | Util.RegionHandleToWorldLoc(regionHandle, out rx, out ry); | ||
134 | |||
131 | foreach (Scene s in m_Scenes) | 135 | foreach (Scene s in m_Scenes) |
132 | { | 136 | { |
133 | if (s.RegionInfo.RegionHandle == regionHandle) | 137 | uint t = s.RegionInfo.WorldLocX; |
138 | if( rx < t) | ||
139 | continue; | ||
140 | t += s.RegionInfo.RegionSizeX; | ||
141 | if( rx >= t) | ||
142 | continue; | ||
143 | t = s.RegionInfo.WorldLocY; | ||
144 | if( ry < t) | ||
145 | continue; | ||
146 | t += s.RegionInfo.RegionSizeY; | ||
147 | if( ry < t) | ||
134 | { | 148 | { |
135 | m_log.Debug("[LAND IN CONNECTOR]: Found region to GetLandData from"); | 149 | m_log.Debug("[LAND IN CONNECTOR]: Found region to GetLandData from"); |
136 | regionAccess = s.RegionInfo.AccessLevel; | 150 | regionAccess = s.RegionInfo.AccessLevel; |