aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorMelanie Thielker2009-01-03 20:57:59 +0000
committerMelanie Thielker2009-01-03 20:57:59 +0000
commitaa11fbfe340481562d19e5c265b5260e14ffc5b7 (patch)
tree7f3fa39a9b5aff76fc8d2b2609946c8e67fdb804 /OpenSim/Region/Environment
parentPlumb the remaining dwell packets (diff)
downloadopensim-SC_OLD-aa11fbfe340481562d19e5c265b5260e14ffc5b7.zip
opensim-SC_OLD-aa11fbfe340481562d19e5c265b5260e14ffc5b7.tar.gz
opensim-SC_OLD-aa11fbfe340481562d19e5c265b5260e14ffc5b7.tar.bz2
opensim-SC_OLD-aa11fbfe340481562d19e5c265b5260e14ffc5b7.tar.xz
Connect dewww request packets to the land module to makle dwell work
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs13
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)