From 2742be6675f58af317f96fdcbfd8c907f051efdc Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 9 Dec 2007 21:52:01 +0000 Subject: "list" becomes "List" in LSL2CSConverter and (f,3) becomes (f,0) in llRound. Thanks to ChrisD/Gromit for pointing these out. --- .../Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 2 +- .../DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index bbd6839..8155b44 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs @@ -47,7 +47,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL dataTypes.Add("key", "string"); dataTypes.Add("vector", "LSL_Types.Vector3"); dataTypes.Add("rotation", "LSL_Types.Quaternion"); - dataTypes.Add("list", "list"); + dataTypes.Add("list", "List"); dataTypes.Add("null", "null"); } diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs index e72f8f5..8f7a8ff 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs @@ -163,7 +163,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler public int llRound(double f) { - return (int) Math.Round(f, 3); + return (int) Math.Round(f, 0); } //This next group are vector operations involving squaring and square root. ckrinke -- cgit v1.1