From 2a7f4e0602c1b34a5a3439d767e5c7da388118fa Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 11 Nov 2011 21:53:00 +0000 Subject: remove unncessary IClientAPI parameter from SP.SendSitResponse() --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6979d2e..0c20045 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1927,7 +1927,7 @@ namespace OpenSim.Region.Framework.Scenes return targetPart; } - private void SendSitResponse(IClientAPI remoteClient, UUID targetID, Vector3 offset, Quaternion pSitOrientation) + private void SendSitResponse(UUID targetID, Vector3 offset, Quaternion pSitOrientation) { Vector3 pos = new Vector3(); Quaternion sitOrientation = pSitOrientation; @@ -2009,7 +2009,7 @@ namespace OpenSim.Region.Framework.Scenes m_requestedSitTargetUUID = targetID; - HandleAgentSit(remoteClient, UUID); + HandleAgentSit(ControllingClient, UUID); // Moved here to avoid a race with default sit anim // The script event needs to be raised after the default sit anim is set. @@ -2017,7 +2017,6 @@ namespace OpenSim.Region.Framework.Scenes } } - // public void HandleAgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset, string sitAnimation) public void HandleAgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset) { if (ParentID != 0) @@ -2061,7 +2060,7 @@ namespace OpenSim.Region.Framework.Scenes m_log.Warn("Sit requested on unknown object: " + targetID.ToString()); } - SendSitResponse(remoteClient, targetID, offset, Quaternion.Identity); + SendSitResponse(targetID, offset, Quaternion.Identity); } /* -- cgit v1.1