diff options
Add an override of the ! operator to lsl integer.
Fixes Mantis #3041
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 7081e5c..ffb5a93 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1704,6 +1704,11 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1704 | return ret; | 1704 | return ret; |
1705 | } | 1705 | } |
1706 | 1706 | ||
1707 | static public LSLInteger operator !(LSLInteger i1) | ||
1708 | { | ||
1709 | return i1.value == 0 ? 1 : 0; | ||
1710 | } | ||
1711 | |||
1707 | public static LSLInteger operator ++(LSLInteger i) | 1712 | public static LSLInteger operator ++(LSLInteger i) |
1708 | { | 1713 | { |
1709 | i.value++; | 1714 | i.value++; |