From da3724a904d1edb48b83d7f87b7283fd61c7a273 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Sat, 15 Jun 2013 00:11:36 +0100 Subject: [PATCH] minor: remove mono compiler warnings from LSL_Api, properly format method doc for llRot2Axis() --- .../Shared/Api/Implementation/LSL_Api.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 733e868600..256167c395 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4726,13 +4726,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return new LSL_Rotation(x,y,z,s); } - - // Xantor 29/apr/2008 - // converts a Quaternion to X,Y,Z axis rotations + /// + /// Converts a Quaternion to X,Y,Z axis rotations + /// + /// + /// public LSL_Vector llRot2Axis(LSL_Rotation rot) { m_host.AddScriptLPS(1); - double x, y, z; if (Math.Abs(rot.s) > 1) // normalization needed rot.Normalize(); @@ -7454,14 +7455,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return; } - int code = (int)options.GetLSLIntegerItem(0); - int idx = 0; while (idx < options.Data.Length) { int option = (int)options.GetLSLIntegerItem(idx++); - int remain = options.Data.Length - idx; switch (option) {