aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 74ba4fa..9fdf3ce 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -1658,7 +1658,7 @@ namespace OpenSim.Region.ScriptEngine.Common
1658 { 1658 {
1659 // Capped movemment if distance > 10m (http://wiki.secondlife.com/wiki/LlSetPos) 1659 // Capped movemment if distance > 10m (http://wiki.secondlife.com/wiki/LlSetPos)
1660 LSL_Types.Vector3 currentPos = llGetLocalPos(); 1660 LSL_Types.Vector3 currentPos = llGetLocalPos();
1661 if (llVecDist(currentPos, targetPos) > 10) 1661 if (llVecDist(currentPos, targetPos) > 10.0f * m_distanceFactor)
1662 { 1662 {
1663 targetPos = currentPos + m_distanceFactor * 10.0f * llVecNorm(targetPos - currentPos); 1663 targetPos = currentPos + m_distanceFactor * 10.0f * llVecNorm(targetPos - currentPos);
1664 } 1664 }