aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 3ae8a38..a0ae82f 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2706,12 +2706,19 @@ namespace OpenSim.Region.Framework.Scenes
2706 } 2706 }
2707 } 2707 }
2708 2708
2709 if (GetScenePresence(client.AgentId) != null) 2709 if (TryGetScenePresence(client.AgentId, out presence))
2710 { 2710 {
2711 m_LastLogin = Util.EnvironmentTickCount(); 2711 m_LastLogin = Util.EnvironmentTickCount();
2712 EventManager.TriggerOnNewClient(client); 2712 EventManager.TriggerOnNewClient(client);
2713 if (vialogin) 2713 if (vialogin)
2714 {
2714 EventManager.TriggerOnClientLogin(client); 2715 EventManager.TriggerOnClientLogin(client);
2716
2717 // Send initial parcel data
2718 Vector3 pos = presence.AbsolutePosition;
2719 ILandObject land = LandChannel.GetLandObject(pos.X, pos.Y);
2720 land.SendLandUpdateToClient(presence.ControllingClient);
2721 }
2715 } 2722 }
2716 } 2723 }
2717 2724