diff options
author | Jeff Ames | 2007-10-31 09:50:36 +0000 |
---|---|---|
committer | Jeff Ames | 2007-10-31 09:50:36 +0000 |
commit | dbcab80520119230c0f988eac3cd75742a74dc26 (patch) | |
tree | 4d6979d552b74d3e42ba0996071778edfbe8329c /OpenSim/Region/Environment/LandManagement/LandManager.cs | |
parent | forgotten file (diff) | |
download | opensim-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.cs | 17 |
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 | ||