diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 0cddf36..acfe613 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1477,6 +1477,16 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1477 | 1477 | ||
1478 | #region Operators | 1478 | #region Operators |
1479 | 1479 | ||
1480 | static public implicit operator int(LSLFloat f) | ||
1481 | { | ||
1482 | return (int)f.value; | ||
1483 | } | ||
1484 | |||
1485 | static public implicit operator uint(LSLFloat f) | ||
1486 | { | ||
1487 | return (uint) Math.Abs(f.value); | ||
1488 | } | ||
1489 | |||
1480 | static public implicit operator Boolean(LSLFloat f) | 1490 | static public implicit operator Boolean(LSLFloat f) |
1481 | { | 1491 | { |
1482 | if (f.value == 0.0) | 1492 | if (f.value == 0.0) |