diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 21 |
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 ca15e3e..f1fe6e1 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -6576,19 +6576,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6576 | #endregion | 6576 | #endregion |
6577 | 6577 | ||
6578 | AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit; | 6578 | AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit; |
6579 | if (handlerAgentRequestSit != null) | ||
6580 | if (!(agentRequestSit.AgentData == null | ||
6581 | || agentRequestSit.TargetObject == null | ||
6582 | || agentRequestSit.TargetObject.TargetID == null | ||
6583 | || agentRequestSit.TargetObject.Offset == null)) | ||
6584 | { | ||
6585 | var sp = m_scene.GetScenePresence(agentRequestSit.AgentData.AgentID); | ||
6586 | if (sp == null || sp.ParentID != 0) // ignore packet if agent is already sitting | ||
6587 | return true; | ||
6588 | 6579 | ||
6589 | handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID, | 6580 | if (handlerAgentRequestSit != null) |
6590 | agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); | 6581 | handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID, |
6591 | } | 6582 | agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); |
6592 | } | 6583 | } |
6593 | return true; | 6584 | return true; |
6594 | } | 6585 | } |
@@ -12243,11 +12234,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12243 | if (logPacket) | 12234 | if (logPacket) |
12244 | m_log.DebugFormat( | 12235 | m_log.DebugFormat( |
12245 | "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", | 12236 | "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", |
12246 | Name, SceneAgent.IsChildAgent ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); | 12237 | Name, SceneAgent.IsChildAgent ? "child" : "root ", Scene.Name, packet.Type); |
12247 | } | 12238 | } |
12248 | 12239 | ||
12249 | if (!ProcessPacketMethod(packet)) | 12240 | if (!ProcessPacketMethod(packet)) |
12250 | m_log.Warn("[CLIENT]: unhandled packet " + packet.Type); | 12241 | m_log.WarnFormat( |
12242 | "[CLIENT]: Unhandled packet {0} from {1} ({2}) in {3}. Ignoring.", | ||
12243 | packet.Type, Name, SceneAgent.IsChildAgent ? "child" : "root ", Scene.Name); | ||
12251 | } | 12244 | } |
12252 | 12245 | ||
12253 | private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket) | 12246 | private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket) |