mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Applying dalien's patches from bug#177 and #179
This commit is contained in:
@@ -546,6 +546,28 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
eventManager.TriggerOnRemovePresence(agentID);
|
||||
|
||||
ScenePresence avatar = this.RequestAvatar(agentID);
|
||||
|
||||
m_clientManager.ForEachClient(
|
||||
delegate(IClientAPI client)
|
||||
{
|
||||
client.SendKillObject(avatar.RegionHandle, avatar.LocalId);
|
||||
});
|
||||
|
||||
lock (Avatars) {
|
||||
if (Avatars.ContainsKey(agentID)) {
|
||||
Avatars.Remove(agentID);
|
||||
}
|
||||
}
|
||||
lock (Entities) {
|
||||
if (Entities.ContainsKey(agentID)) {
|
||||
Entities.Remove(agentID);
|
||||
}
|
||||
}
|
||||
// TODO: Add the removal from physics ?
|
||||
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user