diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 13 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 5 |
2 files changed, 2 insertions, 16 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 7dcf1e8..bf2a678 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -835,19 +835,6 @@ namespace OpenSim.Region.ClientStack | |||
835 | OutPacket(avatarReply); | 835 | OutPacket(avatarReply); |
836 | } | 836 | } |
837 | 837 | ||
838 | public void SendSitResponse(LLUUID targetID, LLVector3 offset) | ||
839 | { | ||
840 | AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); | ||
841 | |||
842 | avatarSitResponse.SitObject.ID = targetID; | ||
843 | |||
844 | avatarSitResponse.SitTransform.AutoPilot = true; | ||
845 | avatarSitResponse.SitTransform.SitPosition = offset; | ||
846 | avatarSitResponse.SitTransform.SitRotation = new LLQuaternion(0.0f, 0.0f, 0.0f, 1.0f); | ||
847 | |||
848 | OutPacket(avatarSitResponse); | ||
849 | } | ||
850 | |||
851 | #endregion | 838 | #endregion |
852 | 839 | ||
853 | #region Appearance/ Wearables Methods | 840 | #region Appearance/ Wearables Methods |
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index dd2562c..7d1780c 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -200,12 +200,11 @@ namespace OpenSim.Region.ClientStack | |||
200 | } | 200 | } |
201 | break; | 201 | break; |
202 | case PacketType.AgentRequestSit: | 202 | case PacketType.AgentRequestSit: |
203 | AgentRequestSitPacket agentRequestSit = (AgentRequestSitPacket) Pack; | ||
204 | SendSitResponse(agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); | ||
205 | if (OnAgentRequestSit != null) | 203 | if (OnAgentRequestSit != null) |
206 | { | 204 | { |
205 | AgentRequestSitPacket agentRequestSit = (AgentRequestSitPacket)Pack; | ||
207 | OnAgentRequestSit(this, agentRequestSit.AgentData.AgentID, | 206 | OnAgentRequestSit(this, agentRequestSit.AgentData.AgentID, |
208 | agentRequestSit.TargetObject.TargetID); | 207 | agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); |
209 | } | 208 | } |
210 | break; | 209 | break; |
211 | case PacketType.AgentSit: | 210 | case PacketType.AgentSit: |