refactor: use sit orientation argument passed in to SP.SendSitResponse() rather than creating a new copy

There are no issues with side-effects since this is a struct.
0.7.3-extended
Justin Clark-Casey (justincc) 2012-07-10 23:26:40 +01:00
parent 095375d63d
commit 1b8814878d
1 changed files with 2 additions and 4 deletions

View File

@ -1922,10 +1922,8 @@ namespace OpenSim.Region.Framework.Scenes
return targetPart; return targetPart;
} }
private void SendSitResponse(UUID targetID, Vector3 offset, Quaternion pSitOrientation) private void SendSitResponse(UUID targetID, Vector3 offset, Quaternion sitOrientation)
{ {
Vector3 pos = new Vector3();
Quaternion sitOrientation = pSitOrientation;
Vector3 cameraEyeOffset = Vector3.Zero; Vector3 cameraEyeOffset = Vector3.Zero;
Vector3 cameraAtOffset = Vector3.Zero; Vector3 cameraAtOffset = Vector3.Zero;
bool forceMouselook = false; bool forceMouselook = false;
@ -1941,7 +1939,7 @@ namespace OpenSim.Region.Framework.Scenes
m_sitAvatarHeight = PhysicsActor.Size.Z; m_sitAvatarHeight = PhysicsActor.Size.Z;
bool canSit = false; bool canSit = false;
pos = part.AbsolutePosition + offset; Vector3 pos = part.AbsolutePosition + offset;
if (part.IsSitTargetSet) if (part.IsSitTargetSet)
{ {