aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land
diff options
context:
space:
mode:
authorUbitUmarov2016-12-16 18:22:07 +0000
committerUbitUmarov2016-12-16 18:22:07 +0000
commit61d2fb6a17bc583678a383e1e640671432824ec7 (patch)
tree7d269ad7756a8312680d7ce97f5ff4748bf02518 /OpenSim/Region/CoreModules/ServiceConnectorsIn/Land
parentok.. another try on the HG uri (diff)
downloadopensim-SC-61d2fb6a17bc583678a383e1e640671432824ec7.zip
opensim-SC-61d2fb6a17bc583678a383e1e640671432824ec7.tar.gz
opensim-SC-61d2fb6a17bc583678a383e1e640671432824ec7.tar.bz2
opensim-SC-61d2fb6a17bc583678a383e1e640671432824ec7.tar.xz
viewers regionhandle are not necessary region identifiers, compensate for that on GetLandData in case one get there
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsIn/Land')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs
index b632146..1273f0d 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsIn/Land/LandServiceInConnectorModule.cs
@@ -131,7 +131,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Land
131 131
132 uint rx = 0, ry = 0; 132 uint rx = 0, ry = 0;
133 Util.RegionHandleToWorldLoc(regionHandle, out rx, out ry); 133 Util.RegionHandleToWorldLoc(regionHandle, out rx, out ry);
134 134 rx += x;
135 ry += y;
135 foreach (Scene s in m_Scenes) 136 foreach (Scene s in m_Scenes)
136 { 137 {
137 uint t = s.RegionInfo.WorldLocX; 138 uint t = s.RegionInfo.WorldLocX;
@@ -147,6 +148,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Land
147 if( ry < t) 148 if( ry < t)
148 { 149 {
149// m_log.Debug("[LAND IN CONNECTOR]: Found region to GetLandData from"); 150// m_log.Debug("[LAND IN CONNECTOR]: Found region to GetLandData from");
151 x = rx - s.RegionInfo.WorldLocX;
152 y = ry - s.RegionInfo.WorldLocY;
150 regionAccess = s.RegionInfo.AccessLevel; 153 regionAccess = s.RegionInfo.AccessLevel;
151 return s.GetLandData(x, y); 154 return s.GetLandData(x, y);
152 } 155 }