aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-14 22:07:07 +0000
committerJustin Clark-Casey (justincc)2013-03-14 22:07:07 +0000
commit895aa7346f5ba44055225cb4d11351f953ce458e (patch)
treee4eda140e468b5c5a54dfb17734d227e08714c64 /OpenSim
parentFix minor race condition in llGetOmega() where a call whilst a prim was chang... (diff)
downloadopensim-SC_OLD-895aa7346f5ba44055225cb4d11351f953ce458e.zip
opensim-SC_OLD-895aa7346f5ba44055225cb4d11351f953ce458e.tar.gz
opensim-SC_OLD-895aa7346f5ba44055225cb4d11351f953ce458e.tar.bz2
opensim-SC_OLD-895aa7346f5ba44055225cb4d11351f953ce458e.tar.xz
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()
Diffstat (limited to 'OpenSim')
-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 29bc9c7..d25f673 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2327,7 +2327,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2327 public LSL_Vector llGetOmega() 2327 public LSL_Vector llGetOmega()
2328 { 2328 {
2329 m_host.AddScriptLPS(1); 2329 m_host.AddScriptLPS(1);
2330 return new LSL_Vector(m_host.AngularVelocity.X, m_host.AngularVelocity.Y, m_host.AngularVelocity.Z); 2330
2331 return new LSL_Vector(m_host.AngularVelocity);
2331 } 2332 }
2332 2333
2333 public LSL_Float llGetTimeOfDay() 2334 public LSL_Float llGetTimeOfDay()