aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authoridb2009-01-25 10:17:26 +0000
committeridb2009-01-25 10:17:26 +0000
commitaa2521623c79007c480986dc491bf2f98cec3f8c (patch)
tree8eb33b9d83feb6a716b1b7603d35db1cb2ca715d /OpenSim
parentApplied patch from #3012 Fixing a minor bug where nhibernate mappings from ou... (diff)
downloadopensim-SC-aa2521623c79007c480986dc491bf2f98cec3f8c.zip
opensim-SC-aa2521623c79007c480986dc491bf2f98cec3f8c.tar.gz
opensim-SC-aa2521623c79007c480986dc491bf2f98cec3f8c.tar.bz2
opensim-SC-aa2521623c79007c480986dc491bf2f98cec3f8c.tar.xz
Add an override of the ! operator to lsl integer.
Fixes Mantis #3041
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs5
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++;