From 0c831a0c2e6264e607b148bdf73a0aee8add6f34 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Sun, 11 May 2008 04:38:02 +0000
Subject: * Mantis #1127 - Patch to implement depreciated patches. Thanks
 middlelink!

---
 .../Region/ClientStack/LindenUDP/LLClientView.cs   | 40 +++++++++++++++++++---
 1 file changed, 36 insertions(+), 4 deletions(-)

(limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')

diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index bf45006..8506912 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -4367,6 +4367,42 @@ namespace OpenSim.Region.ClientStack.LindenUDP
                             }
                         }
                         break;
+                    case PacketType.ObjectPosition:
+                        // DEPRECATED: but till libsecondlife removes it, people will use it
+                        ObjectPositionPacket position = (ObjectPositionPacket)Pack;
+
+                        for (int i=0; i<position.ObjectData.Length; i++)
+                        {
+                            handlerUpdateVector = OnUpdatePrimGroupPosition;
+                            if (handlerUpdateVector != null)
+                                handlerUpdateVector(position.ObjectData[i].ObjectLocalID, position.ObjectData[i].Position, this);
+                        }
+
+                        break;
+                    case PacketType.ObjectScale:
+                        // DEPRECATED: but till libsecondlife removes it, people will use it
+                        ObjectScalePacket scale = (ObjectScalePacket)Pack;
+
+                        for (int i=0; i<scale.ObjectData.Length; i++)
+                        {
+                            handlerUpdatePrimGroupScale = OnUpdatePrimGroupScale;
+                            if (handlerUpdatePrimGroupScale != null)
+                                handlerUpdatePrimGroupScale(scale.ObjectData[i].ObjectLocalID, scale.ObjectData[i].Scale, this);
+                        }
+
+                        break;
+                    case PacketType.ObjectRotation:
+                        // DEPRECATED: but till libsecondlife removes it, people will use it
+                        ObjectRotationPacket rotation = (ObjectRotationPacket)Pack;
+
+                        for (int i=0; i<rotation.ObjectData.Length; i++)
+                        {
+                            handlerUpdatePrimRotation = OnUpdatePrimGroupRotation;
+                            if (handlerUpdatePrimRotation != null)
+                                handlerUpdatePrimRotation(rotation.ObjectData[i].ObjectLocalID, rotation.ObjectData[i].Rotation, this);
+                        }
+
+                        break;
                     case PacketType.ObjectFlagUpdate:
                         ObjectFlagUpdatePacket flags = (ObjectFlagUpdatePacket)Pack;
 
@@ -5524,10 +5560,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
                         // TODO: Perhaps this should be processed on the Sim to determine whether or not to drop a dead client
                         //m_log.Warn("[CLIENT]: unhandled CompletePingCheck packet");
                         break;
-                    case PacketType.ObjectScale:
-                        // TODO: handle this packet
-                        m_log.Warn("[CLIENT]: unhandled ObjectScale packet");
-                        break;
                     case PacketType.ViewerStats:
                         // TODO: handle this packet
                         m_log.Warn("[CLIENT]: unhandled ViewerStats packet");
-- 
cgit v1.1