diff options
author | dahlia | 2013-01-14 22:24:24 -0800 |
---|---|---|
committer | dahlia | 2013-01-14 22:24:24 -0800 |
commit | 055b8a2d58a17d5dbc6cdb7f22077e6268578905 (patch) | |
tree | 4696df9384d5886674e5e30ac2ac26ae82e5a544 /OpenSim/Region/ClientStack/Linden | |
parent | test commit for new git install (diff) | |
download | opensim-SC_OLD-055b8a2d58a17d5dbc6cdb7f22077e6268578905.zip opensim-SC_OLD-055b8a2d58a17d5dbc6cdb7f22077e6268578905.tar.gz opensim-SC_OLD-055b8a2d58a17d5dbc6cdb7f22077e6268578905.tar.bz2 opensim-SC_OLD-055b8a2d58a17d5dbc6cdb7f22077e6268578905.tar.xz |
move resit fix to ScenePresence.cs and allow for requesting sit on objects other than the object currently sat on
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index a8517e6..967fa44 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -6427,19 +6427,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6427 | #endregion | 6427 | #endregion |
6428 | 6428 | ||
6429 | AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit; | 6429 | AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit; |
6430 | if (handlerAgentRequestSit != null) | ||
6431 | if (!(agentRequestSit.AgentData == null | ||
6432 | || agentRequestSit.TargetObject == null | ||
6433 | || agentRequestSit.TargetObject.TargetID == null | ||
6434 | || agentRequestSit.TargetObject.Offset == null)) | ||
6435 | { | ||
6436 | var sp = m_scene.GetScenePresence(agentRequestSit.AgentData.AgentID); | ||
6437 | if (sp == null || sp.ParentID != 0) // ignore packet if agent is already sitting | ||
6438 | return true; | ||
6439 | 6430 | ||
6440 | handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID, | 6431 | if (handlerAgentRequestSit != null) |
6441 | agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); | 6432 | handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID, |
6442 | } | 6433 | agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); |
6443 | } | 6434 | } |
6444 | return true; | 6435 | return true; |
6445 | } | 6436 | } |