fixed bug with user not getting land properties on login
parent
720065ef9e
commit
dbcab80520
|
@ -220,6 +220,11 @@ namespace OpenSim.Region.Environment.LandManagement
|
|||
}
|
||||
}
|
||||
|
||||
public void sendLandUpdateToClient(IClientAPI remote_client)
|
||||
{
|
||||
sendLandProperties(0, false, 0, remote_client);
|
||||
}
|
||||
|
||||
public void sendLandUpdateToAvatarsOverMe()
|
||||
{
|
||||
List<ScenePresence> avatars = m_scene.GetAvatars();
|
||||
|
@ -230,7 +235,7 @@ namespace OpenSim.Region.Environment.LandManagement
|
|||
(int) Math.Round(avatars[i].AbsolutePosition.Y));
|
||||
if (over.landData.localID == landData.localID)
|
||||
{
|
||||
sendLandProperties(0, false, 0, avatars[i].ControllingClient);
|
||||
sendLandUpdateToClient(avatars[i].ControllingClient);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -533,17 +533,24 @@ namespace OpenSim.Region.Environment.LandManagement
|
|||
addLandObject(fullSimParcel);
|
||||
}
|
||||
|
||||
public void sendLandUpdate(ScenePresence avatar)
|
||||
{
|
||||
Land over = getLandObject((int) Math.Round(avatar.AbsolutePosition.X),
|
||||
(int) Math.Round(avatar.AbsolutePosition.Y));
|
||||
|
||||
if (over != null)
|
||||
{
|
||||
over.sendLandUpdateToClient(avatar.ControllingClient);
|
||||
}
|
||||
}
|
||||
|
||||
public void handleSignificantClientMovement(IClientAPI remote_client)
|
||||
{
|
||||
ScenePresence clientAvatar = m_scene.GetScenePresence(remote_client.AgentId);
|
||||
|
||||
if (clientAvatar != null)
|
||||
{
|
||||
Land over = getLandObject(clientAvatar.AbsolutePosition.X, clientAvatar.AbsolutePosition.Y);
|
||||
if (over != null)
|
||||
{
|
||||
over.sendLandProperties(0, false, 0, remote_client);
|
||||
}
|
||||
sendLandUpdate(clientAvatar);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -281,6 +281,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
//do we need to use newAvatar? not sure so have added this to kill the compile warning
|
||||
}
|
||||
|
||||
m_scene.LandManager.sendLandUpdate(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue