aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs5
1 files changed, 4 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 bcbfe96..013ea27 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4277,7 +4277,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4277 { 4277 {
4278 m_host.AddScriptLPS(1); 4278 m_host.AddScriptLPS(1);
4279 4279
4280 return (double) Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; 4280 double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2;
4281 if (angle < 0) angle = -angle;
4282 if (angle > Math.PI) return (Math.PI * 2 - angle);
4283 return angle;
4281 } 4284 }
4282 4285
4283 public LSL_String llGetInventoryKey(string name) 4286 public LSL_String llGetInventoryKey(string name)