aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_Types.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
index bb1fe2f..d0871bc 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
@@ -1291,6 +1291,11 @@ namespace OpenSim.Region.ScriptEngine.Common
1291 return new LSLInteger(d); 1291 return new LSLInteger(d);
1292 } 1292 }
1293 1293
1294 static public explicit operator LSLInteger(LSLFloat f)
1295 {
1296 return new LSLInteger(f.value);
1297 }
1298
1294 static public bool operator ==(LSLInteger i1, LSLInteger i2) 1299 static public bool operator ==(LSLInteger i1, LSLInteger i2)
1295 { 1300 {
1296 bool ret = i1.value == i2.value; 1301 bool ret = i1.value == i2.value;