From 67b0ba71da8d78ac0315647dd46c0d80de4ba5b8 Mon Sep 17 00:00:00 2001 From: idb Date: Sat, 14 Feb 2009 18:09:08 +0000 Subject: Add an override for the % operator. Fixes Mantis #3157 --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared') 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 return ret; } + static public LSLInteger operator %(LSLInteger i1, LSLInteger i2) + { + int ret = i1.value % i2.value; + return ret; + } + static public LSLInteger operator |(LSLInteger i1, LSLInteger i2) { int ret = i1.value | i2.value; -- cgit v1.1