Send media and other parcel data to client on login. Makes streams visible

right away and starts media.
avinationmerge
Melanie 2010-11-18 13:26:35 +01:00
parent 47f0468995
commit f3e4000a55
1 changed files with 8 additions and 1 deletions

View File

@ -2706,12 +2706,19 @@ namespace OpenSim.Region.Framework.Scenes
}
}
if (GetScenePresence(client.AgentId) != null)
if (TryGetScenePresence(client.AgentId, out presence))
{
m_LastLogin = Util.EnvironmentTickCount();
EventManager.TriggerOnNewClient(client);
if (vialogin)
{
EventManager.TriggerOnClientLogin(client);
// Send initial parcel data
Vector3 pos = presence.AbsolutePosition;
ILandObject land = LandChannel.GetLandObject(pos.X, pos.Y);
land.SendLandUpdateToClient(presence.ControllingClient);
}
}
}