aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorDahlia Trimble2008-07-25 02:06:40 +0000
committerDahlia Trimble2008-07-25 02:06:40 +0000
commitc1e239dedce6ce91cdfcd8c20108144b01df724d (patch)
treeff2e488b0e3380bc71678d0e4707e8412dd3b02c /OpenSim/Region/ScriptEngine/Common
parentLet's not fail if tests fail. (diff)
downloadopensim-SC_OLD-c1e239dedce6ce91cdfcd8c20108144b01df724d.zip
opensim-SC_OLD-c1e239dedce6ce91cdfcd8c20108144b01df724d.tar.gz
opensim-SC_OLD-c1e239dedce6ce91cdfcd8c20108144b01df724d.tar.bz2
opensim-SC_OLD-c1e239dedce6ce91cdfcd8c20108144b01df724d.tar.xz
llApplyImpulse now accepts any non-zero integer as not FALSE
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs16
1 files changed, 4 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index d7fd2c5..2ef5c47 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -1659,21 +1659,13 @@ namespace OpenSim.Region.ScriptEngine.Common
1659 //No energy force yet 1659 //No energy force yet
1660 1660
1661 if (force.x > 20000) 1661 if (force.x > 20000)
1662 force.x = 20000; 1662 force.x = 20000;
1663 if (force.y > 20000) 1663 if (force.y > 20000)
1664 force.y = 20000; 1664 force.y = 20000;
1665 if (force.z > 20000) 1665 if (force.z > 20000)
1666 force.z = 20000; 1666 force.z = 20000;
1667 1667
1668 if (local == 1) 1668 m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), local != 0);
1669 {
1670 m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), true);
1671 }
1672 else
1673 {
1674
1675 m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z), false);
1676 }
1677 } 1669 }
1678 1670
1679 public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) 1671 public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local)