diff options
author | Melanie | 2010-12-31 15:45:08 +0100 |
---|---|---|
committer | Melanie | 2010-12-31 15:45:08 +0100 |
commit | 6820deed34fa87bc9b02376b382bae902052af9f (patch) | |
tree | 5efa55542a661607466e46abc593ed1956b0ade7 /OpenSim/Region/CoreModules/ServiceConnectorsOut | |
parent | Add MessageKey to section Messaging, a key that prevents injection of (diff) | |
download | opensim-SC_OLD-6820deed34fa87bc9b02376b382bae902052af9f.zip opensim-SC_OLD-6820deed34fa87bc9b02376b382bae902052af9f.tar.gz opensim-SC_OLD-6820deed34fa87bc9b02376b382bae902052af9f.tar.bz2 opensim-SC_OLD-6820deed34fa87bc9b02376b382bae902052af9f.tar.xz |
Implement Scope ID lookup on GetLandData. Stacked regions were not handled
properly
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/LocalLandServiceConnector.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/RemoteLandServiceConnector.cs | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/LocalLandServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/LocalLandServiceConnector.cs index e15f624..86c0b85 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/LocalLandServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/LocalLandServiceConnector.cs | |||
@@ -35,6 +35,7 @@ using OpenSim.Server.Base; | |||
35 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
36 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
37 | using OpenSim.Services.Interfaces; | 37 | using OpenSim.Services.Interfaces; |
38 | using OpenMetaverse; | ||
38 | 39 | ||
39 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land | 40 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land |
40 | { | 41 | { |
@@ -116,7 +117,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land | |||
116 | 117 | ||
117 | #region ILandService | 118 | #region ILandService |
118 | 119 | ||
119 | public LandData GetLandData(ulong regionHandle, uint x, uint y, out byte regionAccess) | 120 | public LandData GetLandData(UUID scopeID, ulong regionHandle, uint x, uint y, out byte regionAccess) |
120 | { | 121 | { |
121 | regionAccess = 2; | 122 | regionAccess = 2; |
122 | m_log.DebugFormat("[LAND CONNECTOR]: request for land data in {0} at {1}, {2}", | 123 | m_log.DebugFormat("[LAND CONNECTOR]: request for land data in {0} at {1}, {2}", |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/RemoteLandServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/RemoteLandServiceConnector.cs index 252d9e7..766ef81 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/RemoteLandServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Land/RemoteLandServiceConnector.cs | |||
@@ -36,6 +36,7 @@ using OpenSim.Region.Framework.Interfaces; | |||
36 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
37 | using OpenSim.Services.Interfaces; | 37 | using OpenSim.Services.Interfaces; |
38 | using OpenSim.Server.Base; | 38 | using OpenSim.Server.Base; |
39 | using OpenMetaverse; | ||
39 | 40 | ||
40 | 41 | ||
41 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land | 42 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land |
@@ -109,13 +110,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land | |||
109 | 110 | ||
110 | #region ILandService | 111 | #region ILandService |
111 | 112 | ||
112 | public override LandData GetLandData(ulong regionHandle, uint x, uint y, out byte regionAccess) | 113 | public override LandData GetLandData(UUID scopeID, ulong regionHandle, uint x, uint y, out byte regionAccess) |
113 | { | 114 | { |
114 | LandData land = m_LocalService.GetLandData(regionHandle, x, y, out regionAccess); | 115 | LandData land = m_LocalService.GetLandData(scopeID, regionHandle, x, y, out regionAccess); |
115 | if (land != null) | 116 | if (land != null) |
116 | return land; | 117 | return land; |
117 | 118 | ||
118 | return base.GetLandData(regionHandle, x, y, out regionAccess); | 119 | return base.GetLandData(scopeID, regionHandle, x, y, out regionAccess); |
119 | 120 | ||
120 | } | 121 | } |
121 | #endregion ILandService | 122 | #endregion ILandService |