kill avatar on agents that do not see its new region

This commit is contained in:
UbitUmarov
2019-04-05 12:31:43 +01:00
parent 7ce45235e6
commit 28c9725730

View File

@@ -1655,6 +1655,14 @@ namespace OpenSim.Region.Framework.Scenes
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);
}