aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-14 22:04:11 +0000
committerJustin Clark-Casey (justincc)2013-03-14 22:04:11 +0000
commit1774c631cb441458596f3adde3474518d883a7e6 (patch)
tree6a501fbd2ae02412d59a6bb598cb6de56dd00c8e
parentrefactor: Use LSL_Vector(Vector3) constructor in llGetVel() (diff)
downloadopensim-SC_OLD-1774c631cb441458596f3adde3474518d883a7e6.zip
opensim-SC_OLD-1774c631cb441458596f3adde3474518d883a7e6.tar.gz
opensim-SC_OLD-1774c631cb441458596f3adde3474518d883a7e6.tar.bz2
opensim-SC_OLD-1774c631cb441458596f3adde3474518d883a7e6.tar.xz
Fix minor race condition in llGetOmega() where a call whilst a prim was changing angular velocity could return inconsistent results
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index aadfe72..29bc9c7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2320,7 +2320,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2320 public LSL_Vector llGetAccel() 2320 public LSL_Vector llGetAccel()
2321 { 2321 {
2322 m_host.AddScriptLPS(1); 2322 m_host.AddScriptLPS(1);
2323 return new LSL_Vector(m_host.Acceleration.X, m_host.Acceleration.Y, m_host.Acceleration.Z); 2323
2324 return new LSL_Vector(m_host.Acceleration);
2324 } 2325 }
2325 2326
2326 public LSL_Vector llGetOmega() 2327 public LSL_Vector llGetOmega()