Connect dewww request packets to the land module to makle dwell work

0.6.2-post-fixes
Melanie Thielker 2009-01-03 20:57:59 +00:00
parent 7beb8a5abb
commit aa11fbfe34
1 changed files with 13 additions and 0 deletions

View File

@ -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)