mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
kill avatar on agents that do not see its new region
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user