aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorSean Dague2009-02-07 13:16:27 +0000
committerSean Dague2009-02-07 13:16:27 +0000
commit6bd2979486d0d6396dcc87db1c75369d9159c59b (patch)
treef7bf66fa6419d35a230dee91558bfddea8cfa3bc /OpenSim/Region/ScriptEngine/Shared/Api
parentReplace the console for all OpenSim apps with a new console featuring command (diff)
downloadopensim-SC_OLD-6bd2979486d0d6396dcc87db1c75369d9159c59b.zip
opensim-SC_OLD-6bd2979486d0d6396dcc87db1c75369d9159c59b.tar.gz
opensim-SC_OLD-6bd2979486d0d6396dcc87db1c75369d9159c59b.tar.bz2
opensim-SC_OLD-6bd2979486d0d6396dcc87db1c75369d9159c59b.tar.xz
the parameters for llAtan2 were inverted before passing to Math.
Thanks to Rob Smart for pointing this out.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
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 0825bf8..c14d454 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -344,7 +344,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
344 public LSL_Float llAtan2(double x, double y) 344 public LSL_Float llAtan2(double x, double y)
345 { 345 {
346 m_host.AddScriptLPS(1); 346 m_host.AddScriptLPS(1);
347 return (double)Math.Atan2(y, x); 347 return (double)Math.Atan2(x, y);
348 } 348 }
349 349
350 public LSL_Float llSqrt(double f) 350 public LSL_Float llSqrt(double f)