From 117cc09edcc796f93cb05f98d7589b7ca5313ee8 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Thu, 24 Jul 2008 05:23:38 +0000 Subject: Replace implicit casts from LSLFloat to int and uint which were removed in r5487. Also put the unit tests back for Bamboo to execute them, let's see how this goes. --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs') 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 #region Operators + static public implicit operator int(LSLFloat f) + { + return (int)f.value; + } + + static public implicit operator uint(LSLFloat f) + { + return (uint) Math.Abs(f.value); + } + static public implicit operator Boolean(LSLFloat f) { if (f.value == 0.0) -- cgit v1.1