aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-14 22:01:24 +0000
committerJustin Clark-Casey (justincc)2013-03-14 22:01:24 +0000
commitffbbe29229c2122502a3c173bd40a870d2a3d631 (patch)
tree4778700e8e8866898a3a71f066aaf4fe13432b74 /OpenSim/Region
parentFix minor race condition in llGetLocalRot() where inconsistent results could ... (diff)
downloadopensim-SC_OLD-ffbbe29229c2122502a3c173bd40a870d2a3d631.zip
opensim-SC_OLD-ffbbe29229c2122502a3c173bd40a870d2a3d631.tar.gz
opensim-SC_OLD-ffbbe29229c2122502a3c173bd40a870d2a3d631.tar.bz2
opensim-SC_OLD-ffbbe29229c2122502a3c173bd40a870d2a3d631.tar.xz
refactor: Use LSL_Vector(Vector3) constructor in llGetTorque()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c9d0d91..e55e215 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2287,8 +2287,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2287 public LSL_Vector llGetTorque() 2287 public LSL_Vector llGetTorque()
2288 { 2288 {
2289 m_host.AddScriptLPS(1); 2289 m_host.AddScriptLPS(1);
2290 Vector3 torque = m_host.ParentGroup.GetTorque(); 2290
2291 return new LSL_Vector(torque.X,torque.Y,torque.Z); 2291 return new LSL_Vector(m_host.ParentGroup.GetTorque());
2292 } 2292 }
2293 2293
2294 public void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local) 2294 public void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local)