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

user_profiles
Justin Clark-Casey (justincc) 2013-03-14 22:00:04 +00:00
parent f840728273
commit c3e081a5ca
1 changed files with 2 additions and 1 deletions

View File

@ -2191,7 +2191,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)