diff options
author | Melanie Thielker | 2009-01-03 20:57:59 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-01-03 20:57:59 +0000 |
commit | aa11fbfe340481562d19e5c265b5260e14ffc5b7 (patch) | |
tree | 7f3fa39a9b5aff76fc8d2b2609946c8e67fdb804 | |
parent | Plumb the remaining dwell packets (diff) | |
download | opensim-SC-aa11fbfe340481562d19e5c265b5260e14ffc5b7.zip opensim-SC-aa11fbfe340481562d19e5c265b5260e14ffc5b7.tar.gz opensim-SC-aa11fbfe340481562d19e5c265b5260e14ffc5b7.tar.bz2 opensim-SC-aa11fbfe340481562d19e5c265b5260e14ffc5b7.tar.xz |
Connect dewww request packets to the land module to makle dwell work
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index 5079255..6f50102 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | |||
@@ -120,6 +120,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
120 | client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner); | 120 | client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner); |
121 | client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim); | 121 | client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim); |
122 | client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo); | 122 | client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo); |
123 | client.OnParcelDwellRequest += new ParcelDwellRequest(handleParcelDwell); | ||
123 | if (m_scene.Entities.ContainsKey(client.AgentId)) | 124 | if (m_scene.Entities.ContainsKey(client.AgentId)) |
124 | { | 125 | { |
125 | SendLandUpdate((ScenePresence)m_scene.Entities[client.AgentId], true); | 126 | SendLandUpdate((ScenePresence)m_scene.Entities[client.AgentId], true); |
@@ -1261,6 +1262,18 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
1261 | 1262 | ||
1262 | #endregion | 1263 | #endregion |
1263 | 1264 | ||
1265 | private void handleParcelDwell(int localID, IClientAPI remoteClient) | ||
1266 | { | ||
1267 | ILandObject selectedParcel = null; | ||
1268 | lock (m_landList) | ||
1269 | { | ||
1270 | if (!m_landList.TryGetValue(localID, out selectedParcel)) | ||
1271 | return; | ||
1272 | } | ||
1273 | |||
1274 | remoteClient.SendParcelDwellReply(localID, selectedParcel.landData.GlobalID, selectedParcel.landData.Dwell); | ||
1275 | } | ||
1276 | |||
1264 | private void handleParcelInfo(IClientAPI remoteClient, UUID parcelID) | 1277 | private void handleParcelInfo(IClientAPI remoteClient, UUID parcelID) |
1265 | { | 1278 | { |
1266 | if (parcelID == UUID.Zero) | 1279 | if (parcelID == UUID.Zero) |