aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorDahlia Trimble2009-04-08 03:16:24 +0000
committerDahlia Trimble2009-04-08 03:16:24 +0000
commitd5727c8c1a8c80bc00c748bbd8610e45f911b60c (patch)
treea52d19389beb0177d261abf032db16b6b0456794 /OpenSim/Region/ScriptEngine/Shared/Api
parent* minor: remove some mono compiler warnings (diff)
downloadopensim-SC_OLD-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.zip
opensim-SC_OLD-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.tar.gz
opensim-SC_OLD-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.tar.bz2
opensim-SC_OLD-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.tar.xz
Correct unit test for llAngleBetween()
Reinstate patch for Mantis #3007
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index fe051e6..0f7d039 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4277,8 +4277,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4277 m_host.AddScriptLPS(1); 4277 m_host.AddScriptLPS(1);
4278 4278
4279 double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; 4279 double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2;
4280 //if (angle < 0) angle = -angle; 4280 if (angle < 0) angle = -angle;
4281 //if (angle > Math.PI) return (Math.PI * 2 - angle); 4281 if (angle > Math.PI) return (Math.PI * 2 - angle);
4282 return angle; 4282 return angle;
4283 } 4283 }
4284 4284