diff options
author | Adam Frisby | 2007-07-11 02:51:51 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-11 02:51:51 +0000 |
commit | 561b87b303e8e141ef516b8725ebd3c0be8b1122 (patch) | |
tree | 8405b6cef57b66a58f31a24c859846085d0b81f7 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | preliminary inter region communications (between regions in different instanc... (diff) | |
download | opensim-SC_OLD-561b87b303e8e141ef516b8725ebd3c0be8b1122.zip opensim-SC_OLD-561b87b303e8e141ef516b8725ebd3c0be8b1122.tar.gz opensim-SC_OLD-561b87b303e8e141ef516b8725ebd3c0be8b1122.tar.bz2 opensim-SC_OLD-561b87b303e8e141ef516b8725ebd3c0be8b1122.tar.xz |
* Applying dalien's patches from bug#177 and #179
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index cd81384..d1f6038 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -546,6 +546,28 @@ namespace OpenSim.Region.Environment.Scenes | |||
546 | { | 546 | { |
547 | eventManager.TriggerOnRemovePresence(agentID); | 547 | eventManager.TriggerOnRemovePresence(agentID); |
548 | 548 | ||
549 | ScenePresence avatar = this.RequestAvatar(agentID); | ||
550 | |||
551 | m_clientManager.ForEachClient( | ||
552 | delegate(IClientAPI client) | ||
553 | { | ||
554 | client.SendKillObject(avatar.RegionHandle, avatar.LocalId); | ||
555 | }); | ||
556 | |||
557 | lock (Avatars) { | ||
558 | if (Avatars.ContainsKey(agentID)) { | ||
559 | Avatars.Remove(agentID); | ||
560 | } | ||
561 | } | ||
562 | lock (Entities) { | ||
563 | if (Entities.ContainsKey(agentID)) { | ||
564 | Entities.Remove(agentID); | ||
565 | } | ||
566 | } | ||
567 | // TODO: Add the removal from physics ? | ||
568 | |||
569 | |||
570 | |||
549 | return; | 571 | return; |
550 | } | 572 | } |
551 | #endregion | 573 | #endregion |