aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs21
1 files changed, 7 insertions, 14 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 0a865ab..6428b86 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -6600,19 +6600,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6600 #endregion 6600 #endregion
6601 6601
6602 AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit; 6602 AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit;
6603 if (handlerAgentRequestSit != null)
6604 if (!(agentRequestSit.AgentData == null
6605 || agentRequestSit.TargetObject == null
6606 || agentRequestSit.TargetObject.TargetID == null
6607 || agentRequestSit.TargetObject.Offset == null))
6608 {
6609 var sp = m_scene.GetScenePresence(agentRequestSit.AgentData.AgentID);
6610 if (sp == null || sp.ParentID != 0) // ignore packet if agent is already sitting
6611 return true;
6612 6603
6613 handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID, 6604 if (handlerAgentRequestSit != null)
6614 agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); 6605 handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID,
6615 } 6606 agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset);
6616 } 6607 }
6617 return true; 6608 return true;
6618 } 6609 }
@@ -12267,11 +12258,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12267 if (logPacket) 12258 if (logPacket)
12268 m_log.DebugFormat( 12259 m_log.DebugFormat(
12269 "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", 12260 "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}",
12270 Name, SceneAgent.IsChildAgent ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); 12261 Name, SceneAgent.IsChildAgent ? "child" : "root ", Scene.Name, packet.Type);
12271 } 12262 }
12272 12263
12273 if (!ProcessPacketMethod(packet)) 12264 if (!ProcessPacketMethod(packet))
12274 m_log.Warn("[CLIENT]: unhandled packet " + packet.Type); 12265 m_log.WarnFormat(
12266 "[CLIENT]: Unhandled packet {0} from {1} ({2}) in {3}. Ignoring.",
12267 packet.Type, Name, SceneAgent.IsChildAgent ? "child" : "root ", Scene.Name);
12275 } 12268 }
12276 12269
12277 private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket) 12270 private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket)