aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/LandManagement/LandManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/LandManagement/LandManager.cs')
-rw-r--r--OpenSim/Region/Environment/LandManagement/LandManager.cs17
1 files changed, 12 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs
index 785aafa..a1cfa8a 100644
--- a/OpenSim/Region/Environment/LandManagement/LandManager.cs
+++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs
@@ -533,17 +533,24 @@ namespace OpenSim.Region.Environment.LandManagement
533 addLandObject(fullSimParcel); 533 addLandObject(fullSimParcel);
534 } 534 }
535 535
536 public void sendLandUpdate(ScenePresence avatar)
537 {
538 Land over = getLandObject((int) Math.Round(avatar.AbsolutePosition.X),
539 (int) Math.Round(avatar.AbsolutePosition.Y));
540
541 if (over != null)
542 {
543 over.sendLandUpdateToClient(avatar.ControllingClient);
544 }
545 }
536 546
537 public void handleSignificantClientMovement(IClientAPI remote_client) 547 public void handleSignificantClientMovement(IClientAPI remote_client)
538 { 548 {
539 ScenePresence clientAvatar = m_scene.GetScenePresence(remote_client.AgentId); 549 ScenePresence clientAvatar = m_scene.GetScenePresence(remote_client.AgentId);
550
540 if (clientAvatar != null) 551 if (clientAvatar != null)
541 { 552 {
542 Land over = getLandObject(clientAvatar.AbsolutePosition.X, clientAvatar.AbsolutePosition.Y); 553 sendLandUpdate(clientAvatar);
543 if (over != null)
544 {
545 over.sendLandProperties(0, false, 0, remote_client);
546 }
547 } 554 }
548 } 555 }
549 556