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/Common/LSL_Types.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index be790d6..7274fa5 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -1422,6 +1422,16 @@ namespace OpenSim.Region.ScriptEngine.Common #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