kill avatar on agents that do not see its new region

0.9.1.0-post-fixes
UbitUmarov 2019-04-05 12:31:43 +01:00
parent 7ce45235e6
commit 28c9725730
1 changed files with 8 additions and 0 deletions

View File

@ -1655,6 +1655,14 @@ namespace OpenSim.Region.Framework.Scenes
CollisionPlane = Vector4.UnitW; CollisionPlane = Vector4.UnitW;
// we need to kill this on agents that do not see the new region
m_scene.ForEachRootScenePresence(delegate(ScenePresence p)
{
if (!p.knowsNeighbourRegion(newRegionHandle))
{
SendKillTo(p);
}
});
m_scene.EventManager.TriggerOnMakeChildAgent(this); m_scene.EventManager.TriggerOnMakeChildAgent(this);
} }