Fix minor race condition in llGetLocalRot() where inconsistent results could be returned if the prim was rotating during the call

0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-14 22:00:04 +00:00
parent 66749eafdd
commit 608a569bd5
1 changed files with 2 additions and 1 deletions

View File

@ -2201,7 +2201,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Rotation llGetLocalRot() public LSL_Rotation llGetLocalRot()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return new LSL_Rotation(m_host.RotationOffset.X, m_host.RotationOffset.Y, m_host.RotationOffset.Z, m_host.RotationOffset.W);
return new LSL_Rotation(m_host.RotationOffset);
} }
public void llSetForce(LSL_Vector force, int local) public void llSetForce(LSL_Vector force, int local)