diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
1 files changed, 1 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 46f6d8b..ccbbeb9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1494,7 +1494,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1494 | { | 1494 | { |
1495 | // Capped movemment if distance > 10m (http://wiki.secondlife.com/wiki/LlSetPos) | 1495 | // Capped movemment if distance > 10m (http://wiki.secondlife.com/wiki/LlSetPos) |
1496 | LSL_Types.Vector3 currentPos = llGetLocalPos(); | 1496 | LSL_Types.Vector3 currentPos = llGetLocalPos(); |
1497 | if (llVecDist(currentPos, targetPos) > 10) | 1497 | if (llVecDist(currentPos, targetPos) > 10.0f * m_ScriptDistanceFactor) |
1498 | { | 1498 | { |
1499 | targetPos = currentPos + m_ScriptDistanceFactor * 10 * llVecNorm(targetPos - currentPos); | 1499 | targetPos = currentPos + m_ScriptDistanceFactor * 10 * llVecNorm(targetPos - currentPos); |
1500 | } | 1500 | } |