mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
remove pointless region handle paramter from IClientAPI.SendKillObject()
This commit is contained in:
@@ -1588,7 +1588,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
OutPacket(pc, ThrottleOutPacketType.Unknown);
|
||||
}
|
||||
|
||||
public void SendKillObject(ulong regionHandle, List<uint> localIDs)
|
||||
public void SendKillObject(List<uint> localIDs)
|
||||
{
|
||||
// m_log.DebugFormat("[CLIENT]: Sending KillObjectPacket to {0} for {1} in {2}", Name, localID, regionHandle);
|
||||
|
||||
@@ -11555,8 +11555,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
if (part == null)
|
||||
{
|
||||
// It's a ghost! tell the client to delete it from view.
|
||||
simClient.SendKillObject(Scene.RegionInfo.RegionHandle,
|
||||
new List<uint> { localId });
|
||||
simClient.SendKillObject(new List<uint> { localId });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -776,7 +776,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
m_scene.ForEachClient(
|
||||
client =>
|
||||
{ if (client.AgentId != so.AttachedAvatar)
|
||||
client.SendKillObject(m_scene.RegionInfo.RegionHandle, new List<uint>() { so.LocalId });
|
||||
client.SendKillObject(new List<uint>() { so.LocalId });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -950,7 +950,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
|
||||
|
||||
}
|
||||
|
||||
public void SendKillObject(ulong regionHandle, List<uint> localID)
|
||||
public void SendKillObject(List<uint> localID)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -592,7 +592,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
|
||||
}
|
||||
|
||||
public virtual void SendKillObject(ulong regionHandle, List<uint> localID)
|
||||
public virtual void SendKillObject(List<uint> localID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user