aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)