aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCinder2014-11-19 18:07:03 -0700
committerJames Hughes2014-11-20 11:32:46 -0600
commitcfaf904a3b2ab7a8be062d21b2d16cae88a6876e (patch)
tree78f94a491aea91674e8cabf9e288fe7aabaa5b9a
parentMinor: Include missing EventHost power for group owner role. (diff)
downloadopensim-SC-cfaf904a3b2ab7a8be062d21b2d16cae88a6876e.zip
opensim-SC-cfaf904a3b2ab7a8be062d21b2d16cae88a6876e.tar.gz
opensim-SC-cfaf904a3b2ab7a8be062d21b2d16cae88a6876e.tar.bz2
opensim-SC-cfaf904a3b2ab7a8be062d21b2d16cae88a6876e.tar.xz
LSL key should be implicitly cast to a boolean value
Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 7d21a4b..ca81af1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1430,6 +1430,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
1430 return false; 1430 return false;
1431 } 1431 }
1432 } 1432 }
1433
1434 public static bool operator true(key k)
1435 {
1436 return (Boolean)k;
1437 }
1438
1439 public static bool operator false(key k)
1440 {
1441 return !(Boolean)k;
1442 }
1433 1443
1434 static public implicit operator key(string s) 1444 static public implicit operator key(string s)
1435 { 1445 {