From aa11fbfe340481562d19e5c265b5260e14ffc5b7 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 3 Jan 2009 20:57:59 +0000 Subject: [PATCH] Connect dewww request packets to the land module to makle dwell work --- .../Modules/World/Land/LandManagementModule.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index 5079255359..6f501028a1 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 client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner); client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim); client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo); + client.OnParcelDwellRequest += new ParcelDwellRequest(handleParcelDwell); if (m_scene.Entities.ContainsKey(client.AgentId)) { SendLandUpdate((ScenePresence)m_scene.Entities[client.AgentId], true); @@ -1261,6 +1262,18 @@ namespace OpenSim.Region.Environment.Modules.World.Land #endregion + private void handleParcelDwell(int localID, IClientAPI remoteClient) + { + ILandObject selectedParcel = null; + lock (m_landList) + { + if (!m_landList.TryGetValue(localID, out selectedParcel)) + return; + } + + remoteClient.SendParcelDwellReply(localID, selectedParcel.landData.GlobalID, selectedParcel.landData.Dwell); + } + private void handleParcelInfo(IClientAPI remoteClient, UUID parcelID) { if (parcelID == UUID.Zero)