aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
diff options
context:
space:
mode:
authorMike Mazur2008-07-31 07:11:41 +0000
committerMike Mazur2008-07-31 07:11:41 +0000
commit57ec7a26cda361eeac9d7f010194cfe0dfa6c281 (patch)
treeeb8bb3680e3cb7db5449c3703835e6454e43ebbb /OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
parentAllow assignments in if/while/do-while control statements. Fix issue 1862. (diff)
downloadopensim-SC_OLD-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.zip
opensim-SC_OLD-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.tar.gz
opensim-SC_OLD-57ec7a26cda361eeac9d7f010194cfe0dfa6c281.tar.bz2
opensim-SC_OLD-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 '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
index 9dd7e01..575cb43 100644
--- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
@@ -2421,7 +2421,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2421 public const int OBJECT_CREATOR = 8; 2421 public const int OBJECT_CREATOR = 8;
2422 2422
2423 // Can not be public const? 2423 // Can not be public const?
2424 public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); 2424 public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
2425 public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0); 2425 public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0);
2426 } 2426 }
2427} 2427}