diff options
author | idb | 2009-02-14 18:09:08 +0000 |
---|---|---|
committer | idb | 2009-02-14 18:09:08 +0000 |
commit | 67b0ba71da8d78ac0315647dd46c0d80de4ba5b8 (patch) | |
tree | a728a964e604d576a6a18818ce34b7080de8e0dd /OpenSim | |
parent | This hopefully fixes a long-standing annoying behavior related to neighbour r... (diff) | |
download | opensim-SC_OLD-67b0ba71da8d78ac0315647dd46c0d80de4ba5b8.zip opensim-SC_OLD-67b0ba71da8d78ac0315647dd46c0d80de4ba5b8.tar.gz opensim-SC_OLD-67b0ba71da8d78ac0315647dd46c0d80de4ba5b8.tar.bz2 opensim-SC_OLD-67b0ba71da8d78ac0315647dd46c0d80de4ba5b8.tar.xz |
Add an override for the % operator.
Fixes Mantis #3157
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index ffb5a93..05f254a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1692,6 +1692,12 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1692 | return ret; | 1692 | return ret; |
1693 | } | 1693 | } |
1694 | 1694 | ||
1695 | static public LSLInteger operator %(LSLInteger i1, LSLInteger i2) | ||
1696 | { | ||
1697 | int ret = i1.value % i2.value; | ||
1698 | return ret; | ||
1699 | } | ||
1700 | |||
1695 | static public LSLInteger operator |(LSLInteger i1, LSLInteger i2) | 1701 | static public LSLInteger operator |(LSLInteger i1, LSLInteger i2) |
1696 | { | 1702 | { |
1697 | int ret = i1.value | i2.value; | 1703 | int ret = i1.value | i2.value; |