aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs31
1 files changed, 27 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index f3adb22..6c78ef8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1553,16 +1553,39 @@ namespace OpenSim.Region.ScriptEngine.Shared
1553 return new LSLInteger(0); 1553 return new LSLInteger(0);
1554 } 1554 }
1555 1555
1556 static public bool operator ==(LSLInteger i1, LSLInteger i2) 1556 static public LSLInteger operator ==(LSLInteger i1, LSLInteger i2)
1557 { 1557 {
1558 bool ret = i1.value == i2.value; 1558 bool ret = i1.value == i2.value;
1559 return ret; 1559 return new LSLInteger((ret ? 1 : 0));
1560 } 1560 }
1561 1561
1562 static public bool operator !=(LSLInteger i1, LSLInteger i2) 1562 static public LSLInteger operator !=(LSLInteger i1, LSLInteger i2)
1563 { 1563 {
1564 bool ret = i1.value != i2.value; 1564 bool ret = i1.value != i2.value;
1565 return ret; 1565 return new LSLInteger((ret ? 1 : 0));
1566 }
1567
1568 static public LSLInteger operator <(LSLInteger i1, LSLInteger i2)
1569 {
1570 bool ret = i1.value < i2.value;
1571 return new LSLInteger((ret ? 1 : 0));
1572 }
1573 static public LSLInteger operator <=(LSLInteger i1, LSLInteger i2)
1574 {
1575 bool ret = i1.value <= i2.value;
1576 return new LSLInteger((ret ? 1 : 0));
1577 }
1578
1579 static public LSLInteger operator >(LSLInteger i1, LSLInteger i2)
1580 {
1581 bool ret = i1.value > i2.value;
1582 return new LSLInteger((ret ? 1 : 0));
1583 }
1584
1585 static public LSLInteger operator >=(LSLInteger i1, LSLInteger i2)
1586 {
1587 bool ret = i1.value >= i2.value;
1588 return new LSLInteger((ret ? 1 : 0));
1566 } 1589 }
1567 1590
1568 static public LSLInteger operator +(LSLInteger i1, int i2) 1591 static public LSLInteger operator +(LSLInteger i1, int i2)