Fix check for vanilla opensim. Should not check for border crossing on non-CM actors.

dsg
Dan Lake 2011-05-17 10:31:35 -07:00
parent 6ec6fe6745
commit a0a8654c07
1 changed files with 22 additions and 19 deletions

View File

@ -1733,13 +1733,15 @@ namespace OpenSim.Region.Framework.Scenes
// Run through all ScenePresences looking for updates
// Presence updates and queued object updates for each presence are sent to clients
if (RegionSyncEnabled)
{
if (IsSyncedClient())
{
// If it's a client manager, just send prim updates
// This will get fixed later to only send to locally logged in presences rather than all presences
// but requires pulling apart the concept of a client from the concept of a presence/avatar
ForEachScenePresence(delegate(ScenePresence sp) { sp.SendPrimUpdates(); });
if(Frame % 20 == 0)
if (Frame % 20 == 0)
RegionSyncClientModule.SendCoarseLocations();
// make border crossing work in the CMs
m_sceneGraph.ForEachScenePresence(delegate(ScenePresence sp)
@ -1754,6 +1756,7 @@ namespace OpenSim.Region.Framework.Scenes
}
});
}
}
else
{
if (Frame % m_update_presences == 0)