aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorCharles Krinke2008-07-10 00:40:38 +0000
committerCharles Krinke2008-07-10 00:40:38 +0000
commitc9a7bf7e58b41920b3d3152950a3bca5a1b1cf4c (patch)
tree7122b06f15518e81003a7b0155106ac505661146 /OpenSim/Region/ScriptEngine/Shared
parentadded convenience makefile and nant-color script. I've had these (diff)
downloadopensim-SC-c9a7bf7e58b41920b3d3152950a3bca5a1b1cf4c.zip
opensim-SC-c9a7bf7e58b41920b3d3152950a3bca5a1b1cf4c.tar.gz
opensim-SC-c9a7bf7e58b41920b3d3152950a3bca5a1b1cf4c.tar.bz2
opensim-SC-c9a7bf7e58b41920b3d3152950a3bca5a1b1cf4c.tar.xz
Mantis#1673. Thank you kindly, Matth for a patch that:
LSLInteger + literal integer is not an LSLInteger. The included patch fixes the issue: LSLInteger + literal integer is not an LSLInteger (also fixed for -,*,/)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index f08534c53..7ababb4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1320,6 +1320,26 @@ namespace OpenSim.Region.ScriptEngine.Shared
1320 bool ret = i1.value != i2.value; 1320 bool ret = i1.value != i2.value;
1321 return ret; 1321 return ret;
1322 } 1322 }
1323
1324 static public LSLInteger operator +(LSLInteger i1, int i2)
1325 {
1326 return new LSLInteger(i1.value + i2);
1327 }
1328
1329 static public LSLInteger operator -(LSLInteger i1, int i2)
1330 {
1331 return new LSLInteger(i1.value - i2);
1332 }
1333
1334 static public LSLInteger operator *(LSLInteger i1, int i2)
1335 {
1336 return new LSLInteger(i1.value * i2);
1337 }
1338
1339 static public LSLInteger operator /(LSLInteger i1, int i2)
1340 {
1341 return new LSLInteger(i1.value / i2);
1342 }
1323 1343
1324 static public LSLInteger operator &(LSLInteger i1, LSLInteger i2) 1344 static public LSLInteger operator &(LSLInteger i1, LSLInteger i2)
1325 { 1345 {