diff options
author | Mike Mazur | 2008-07-31 07:11:41 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-31 07:11:41 +0000 |
commit | 57ec7a26cda361eeac9d7f010194cfe0dfa6c281 (patch) | |
tree | eb8bb3680e3cb7db5449c3703835e6454e43ebbb /OpenSim/Grid/ScriptEngine/DotNetEngine | |
parent | Allow assignments in if/while/do-while control statements. Fix issue 1862. (diff) | |
download | opensim-SC-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.zip opensim-SC-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.tar.gz opensim-SC-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.tar.bz2 opensim-SC-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.tar.xz |
-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
Diffstat (limited to 'OpenSim/Grid/ScriptEngine/DotNetEngine')
-rw-r--r-- | OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
2118 | public const int PUBLIC_CHANNEL 0x00000000 | 2118 | public const int PUBLIC_CHANNEL 0x00000000 |
2119 | 2119 | ||
2120 | // Can not be public const? | 2120 | // Can not be public const? |
2121 | public vector ZERO_VECTOR = new vector(0, 0, 0); | 2121 | public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); |
2122 | public rotation ZERO_ROTATION = new rotation(0, 0, 0, 0); | 2122 | public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0.0, 0.0, 1.0); |
2123 | } | 2123 | } |
2124 | } | 2124 | } |