aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/LandManagement/LandManager.cs
diff options
context:
space:
mode:
authorJeff Ames2007-10-31 09:50:36 +0000
committerJeff Ames2007-10-31 09:50:36 +0000
commitdbcab80520119230c0f988eac3cd75742a74dc26 (patch)
tree4d6979d552b74d3e42ba0996071778edfbe8329c /OpenSim/Region/Environment/LandManagement/LandManager.cs
parentforgotten file (diff)
downloadopensim-SC_OLD-dbcab80520119230c0f988eac3cd75742a74dc26.zip
opensim-SC_OLD-dbcab80520119230c0f988eac3cd75742a74dc26.tar.gz
opensim-SC_OLD-dbcab80520119230c0f988eac3cd75742a74dc26.tar.bz2
opensim-SC_OLD-dbcab80520119230c0f988eac3cd75742a74dc26.tar.xz
fixed bug with user not getting land properties on login
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