From 47a5d71b7e7e8a354bd5640055cf4efdb881b954 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 11 Nov 2008 19:08:59 +0000 Subject: Prevent pieces from other people's HUDs from displaying at the center of every user's HUD --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 06280ca..f25f3eb 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -2332,8 +2332,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// /// /// - public void AttachObject(uint localID, Quaternion rotation, byte attachPoint) + public void AttachObject(uint localID, Quaternion rotation, byte attachPoint, UUID ownerID) { + if (attachPoint > 30 && ownerID != AgentId) // Someone else's HUD + return; ObjectAttachPacket attach = (ObjectAttachPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAttach); Console.WriteLine("Attach object!"); @@ -2458,8 +2460,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// /// public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, Vector3 position, - Quaternion rotation, Vector3 velocity, Vector3 rotationalvelocity, byte state, UUID AssetId) + Quaternion rotation, Vector3 velocity, Vector3 rotationalvelocity, byte state, UUID AssetId, UUID ownerID, int attachPoint) { + if (attachPoint > 30 && ownerID != AgentId) // Someone else's HUD + return; + if (rotation.X == rotation.Y && rotation.Y == rotation.Z && rotation.Z == rotation.W && rotation.W == 0) rotation = Quaternion.Identity; ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedTerseObjectUpdate); -- cgit v1.1