From 57ec7a26cda361eeac9d7f010194cfe0dfa6c281 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Thu, 31 Jul 2008 07:11:41 +0000 Subject: -make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can be used in scripts -cast from bool to LSL{Integer,Float,String} so functions such as `integer isZero(integer x) { return (x == 0); }` work -progress on issue 1863 --- OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Grid/ScriptEngine/DotNetEngine') diff --git a/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs index 1db1446..b03e761 100644 --- a/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs +++ b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs @@ -2118,7 +2118,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSL public const int PUBLIC_CHANNEL 0x00000000 // Can not be public const? - public vector ZERO_VECTOR = new vector(0, 0, 0); - public rotation ZERO_ROTATION = new rotation(0, 0, 0, 0); + public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); + public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0.0, 0.0, 1.0); } } -- cgit v1.1