mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
remove pointless region handle paramter from IClientAPI.SendKillObject()
This commit is contained in:
@@ -3480,7 +3480,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
delegate(IClientAPI client)
|
||||
{
|
||||
//We can safely ignore null reference exceptions. It means the avatar is dead and cleaned up anyway
|
||||
try { client.SendKillObject(avatar.RegionHandle, new List<uint> { avatar.LocalId }); }
|
||||
try { client.SendKillObject(new List<uint> { avatar.LocalId }); }
|
||||
catch (NullReferenceException) { }
|
||||
});
|
||||
}
|
||||
@@ -3560,7 +3560,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
deleteIDs.Add(localID);
|
||||
}
|
||||
ForEachClient(delegate(IClientAPI client) { client.SendKillObject(m_regionHandle, deleteIDs); });
|
||||
|
||||
ForEachClient(c => c.SendKillObject(deleteIDs));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1247,7 +1247,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (!IsAttachment
|
||||
|| AttachedAvatar == sp.UUID
|
||||
|| !HasPrivateAttachmentPoint)
|
||||
sp.ControllingClient.SendKillObject(m_regionHandle, new List<uint> { part.LocalId });
|
||||
sp.ControllingClient.SendKillObject(new List<uint> { part.LocalId });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user