mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
LSL key should be implicitly cast to a boolean value
Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>
This commit is contained in:
@@ -1430,6 +1430,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool operator true(key k)
|
||||
{
|
||||
return (Boolean)k;
|
||||
}
|
||||
|
||||
public static bool operator false(key k)
|
||||
{
|
||||
return !(Boolean)k;
|
||||
}
|
||||
|
||||
static public implicit operator key(string s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user