Fix minor race condition in llGetOmega() where inconsistent results could be returned (accidentally stated that commit 1774c631 was this fix).

Commit 1774c631 was actually a fix for a similar minor race condition in llGetAccel()
This commit is contained in:
Justin Clark-Casey (justincc)
2013-03-14 22:07:07 +00:00
parent 1774c631cb
commit 895aa7346f

View File

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