diff options
author | Melanie Thielker | 2008-09-03 18:57:06 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-03 18:57:06 +0000 |
commit | ef27c8817fb2899b02116296001770005622f375 (patch) | |
tree | 2a75a9cabf187e670b848ccdb88eb43c7e76f8d0 /OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |
parent | add standard copyright headers for the project (diff) | |
download | opensim-SC_OLD-ef27c8817fb2899b02116296001770005622f375.zip opensim-SC_OLD-ef27c8817fb2899b02116296001770005622f375.tar.gz opensim-SC_OLD-ef27c8817fb2899b02116296001770005622f375.tar.bz2 opensim-SC_OLD-ef27c8817fb2899b02116296001770005622f375.tar.xz |
Mantis #2112
Thannk you, ralphos, for a patch to clean up list item type handling
and add a missing explicit cast in Shared/
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 3e63808..85abdb0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1569,9 +1569,14 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1569 | 1569 | ||
1570 | #region Operators | 1570 | #region Operators |
1571 | 1571 | ||
1572 | static public explicit operator float(LSLFloat f) | ||
1573 | { | ||
1574 | return (float)f.value; | ||
1575 | } | ||
1576 | |||
1572 | static public explicit operator int(LSLFloat f) | 1577 | static public explicit operator int(LSLFloat f) |
1573 | { | 1578 | { |
1574 | return (int)f.value; | 1579 | return (int)f.value; |
1575 | } | 1580 | } |
1576 | 1581 | ||
1577 | static public explicit operator uint(LSLFloat f) | 1582 | static public explicit operator uint(LSLFloat f) |