Fix minor race condition in llGetOmega() where a call whilst a prim was changing angular velocity could return inconsistent results

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

View File

@ -2320,7 +2320,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector llGetAccel() public LSL_Vector llGetAccel()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return new LSL_Vector(m_host.Acceleration.X, m_host.Acceleration.Y, m_host.Acceleration.Z);
return new LSL_Vector(m_host.Acceleration);
} }
public LSL_Vector llGetOmega() public LSL_Vector llGetOmega()