aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2010-11-18 13:26:35 +0100
committerMelanie2010-11-18 13:26:35 +0100
commitf3e4000a552e5dcb7d3f3612badb622e1d412055 (patch)
tree8bd87495c52debf0caeadd6b57c5e226d5bf9a71 /OpenSim/Region
parentSend parcel data upon becoming root. This will make streams play and build (diff)
downloadopensim-SC_OLD-f3e4000a552e5dcb7d3f3612badb622e1d412055.zip
opensim-SC_OLD-f3e4000a552e5dcb7d3f3612badb622e1d412055.tar.gz
opensim-SC_OLD-f3e4000a552e5dcb7d3f3612badb622e1d412055.tar.bz2
opensim-SC_OLD-f3e4000a552e5dcb7d3f3612badb622e1d412055.tar.xz
Send media and other parcel data to client on login. Makes streams visible
right away and starts media.
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