From ea5b120006f3b8b8ffd4d3562e180e5a8de49709 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Tue, 7 Apr 2009 17:29:55 +0000 Subject: temporarily revert llanglebetween patch until unit test can be updated - affects Mantis #3007 --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 013ea27..1a75665 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4278,8 +4278,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_host.AddScriptLPS(1); double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; - if (angle < 0) angle = -angle; - if (angle > Math.PI) return (Math.PI * 2 - angle); + //if (angle < 0) angle = -angle; + //if (angle > Math.PI) return (Math.PI * 2 - angle); return angle; } -- cgit v1.1