* OnSignificantClientMovement was never being called. So we got no land updates (fixed)

0.6.0-stable
Teravus Ovares 2008-02-28 04:18:50 +00:00
parent 70ad5604cd
commit 41c369de82
2 changed files with 10 additions and 1 deletions

View File

@ -61,6 +61,8 @@ namespace OpenSim.Region.Environment.Modules
}
scene.EventManager.OnNewClient += OnNewClient;
scene.EventManager.OnGridInstantMessageToFriendsModule += OnGridInstantMessage;
scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel;
}
public XmlRpcResponse processPresenceUpdate(XmlRpcRequest req)
@ -82,8 +84,15 @@ namespace OpenSim.Region.Environment.Modules
client.OnApproveFriendRequest += OnApprovedFriendRequest;
client.OnDenyFriendRequest += OnDenyFriendRequest;
client.OnTerminateFriendship += OnTerminateFriendship;
}
private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, LLUUID regionID)
{
int i = 0;
}
private void OnInstantMessage(IClientAPI client,LLUUID fromAgentID,

View File

@ -1484,7 +1484,7 @@ namespace OpenSim.Region.Environment.Scenes
if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5)
{
posLastSignificantMove = AbsolutePosition;
handler001 = OnSignificantClientMovement;
if (handler001 != null)
{
handler001(m_controllingClient);