diff options
author | UbitUmarov | 2014-08-21 22:42:45 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-21 22:42:45 +0100 |
commit | 6674548af006484da0d213f2775b9406a163f31f (patch) | |
tree | ce39d712afc5e44db4d41b6dea68e8b2467e0be2 /OpenSim/Region/Framework | |
parent | some cleanup.. (diff) | |
download | opensim-SC_OLD-6674548af006484da0d213f2775b9406a163f31f.zip opensim-SC_OLD-6674548af006484da0d213f2775b9406a163f31f.tar.gz opensim-SC_OLD-6674548af006484da0d213f2775b9406a163f31f.tar.bz2 opensim-SC_OLD-6674548af006484da0d213f2775b9406a163f31f.tar.xz |
replace AgentHasMovedAway + KillEntity by a hacked version on teleports
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index c46a5ad..f9266b4 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -5652,7 +5652,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
5652 | 5652 | ||
5653 | public void parcelRegionCross() | 5653 | public void parcelRegionCross() |
5654 | { | 5654 | { |
5655 | if (!ParcelHideThisAvatar || IsChildAgent || GodLevel >= 200) | 5655 | if (!ParcelHideThisAvatar || GodLevel >= 200) |
5656 | return; | 5656 | return; |
5657 | 5657 | ||
5658 | List<ScenePresence> allpresences = null; | 5658 | List<ScenePresence> allpresences = null; |
@@ -5846,6 +5846,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
5846 | } | 5846 | } |
5847 | } | 5847 | } |
5848 | 5848 | ||
5849 | public void HasMovedAway() | ||
5850 | { | ||
5851 | List<ScenePresence> allpresences = m_scene.GetScenePresences(); | ||
5852 | foreach (ScenePresence p in allpresences) | ||
5853 | SendKillTo(p); | ||
5854 | if (Scene.AttachmentsModule != null) | ||
5855 | Scene.AttachmentsModule.DeleteAttachmentsFromScene(this, true); | ||
5856 | } | ||
5857 | |||
5849 | public void SendKillTo(ScenePresence p) | 5858 | public void SendKillTo(ScenePresence p) |
5850 | { | 5859 | { |
5851 | foreach (SceneObjectGroup sog in m_attachments) | 5860 | foreach (SceneObjectGroup sog in m_attachments) |