diff options
author | Dahlia Trimble | 2008-07-25 02:06:40 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-07-25 02:06:40 +0000 |
commit | c1e239dedce6ce91cdfcd8c20108144b01df724d (patch) | |
tree | ff2e488b0e3380bc71678d0e4707e8412dd3b02c /OpenSim/Region/ScriptEngine/Shared | |
parent | Let's not fail if tests fail. (diff) | |
download | opensim-SC-c1e239dedce6ce91cdfcd8c20108144b01df724d.zip opensim-SC-c1e239dedce6ce91cdfcd8c20108144b01df724d.tar.gz opensim-SC-c1e239dedce6ce91cdfcd8c20108144b01df724d.tar.bz2 opensim-SC-c1e239dedce6ce91cdfcd8c20108144b01df724d.tar.xz |
llApplyImpulse now accepts any non-zero integer as not FALSE
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 201308d..c9c4026 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1517,15 +1517,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1517 | if (force.z > 20000) | 1517 | if (force.z > 20000) |
1518 | force.z = 20000; | 1518 | force.z = 20000; |
1519 | 1519 | ||
1520 | if (local == 1) | 1520 | m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), local != 0); |
1521 | { | ||
1522 | m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), true); | ||
1523 | } | ||
1524 | else | ||
1525 | { | ||
1526 | |||
1527 | m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z), false); | ||
1528 | } | ||
1529 | } | 1521 | } |
1530 | 1522 | ||
1531 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) | 1523 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) |