aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
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/Shared/Api
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 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index f02e970..fd9e1aa 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -416,8 +416,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
416 public const int OBJECT_CREATOR = 8; 416 public const int OBJECT_CREATOR = 8;
417 417
418 // Can not be public const? 418 // Can not be public const?
419 public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); 419 public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
420 public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0); 420 public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0);
421 421
422 } 422 }
423} 423}