diff options
author | UbitUmarov | 2019-04-05 12:31:43 +0100 |
---|---|---|
committer | UbitUmarov | 2019-04-05 12:31:43 +0100 |
commit | 28c97257302a6f6596dca0b79f4c57f0e7f28225 (patch) | |
tree | e557f12230664edba95ffae28b2e951c4bcaebb0 /OpenSim | |
parent | make sure viewer knows where to place a sitting avatar, this will need deep r... (diff) | |
download | opensim-SC-28c97257302a6f6596dca0b79f4c57f0e7f28225.zip opensim-SC-28c97257302a6f6596dca0b79f4c57f0e7f28225.tar.gz opensim-SC-28c97257302a6f6596dca0b79f4c57f0e7f28225.tar.bz2 opensim-SC-28c97257302a6f6596dca0b79f4c57f0e7f28225.tar.xz |
kill avatar on agents that do not see its new region
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index a52fa76..c728d9b 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1655,6 +1655,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
1655 | 1655 | ||
1656 | CollisionPlane = Vector4.UnitW; | 1656 | CollisionPlane = Vector4.UnitW; |
1657 | 1657 | ||
1658 | // we need to kill this on agents that do not see the new region | ||
1659 | m_scene.ForEachRootScenePresence(delegate(ScenePresence p) | ||
1660 | { | ||
1661 | if (!p.knowsNeighbourRegion(newRegionHandle)) | ||
1662 | { | ||
1663 | SendKillTo(p); | ||
1664 | } | ||
1665 | }); | ||
1658 | m_scene.EventManager.TriggerOnMakeChildAgent(this); | 1666 | m_scene.EventManager.TriggerOnMakeChildAgent(this); |
1659 | } | 1667 | } |
1660 | 1668 | ||