Revert "Fix a typecasting issue in llList2Float. This addresses mantis #262"

This reverts commit 810840b862.

This breaks llList2Float in horrible ways. 12 hours 14 minutes becomes
1214.0 and 023.145 becomes 23145.0
Could just add the dot to fix the latter issue but that would not help
the first part. Another solution is needed.
avinationmerge
Melanie Thielker 2010-08-22 15:55:23 +02:00
parent 32ddeab5e3
commit 98b2d3a7f2
1 changed files with 1 additions and 1 deletions

View File

@ -5123,7 +5123,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
else if (src.Data[index] is LSL_Float) else if (src.Data[index] is LSL_Float)
return Convert.ToDouble(((LSL_Float) src.Data[index]).value); return Convert.ToDouble(((LSL_Float) src.Data[index]).value);
else if (src.Data[index] is LSL_String) else if (src.Data[index] is LSL_String)
return Convert.ToDouble(Regex.Replace(((LSL_String)src.Data[index]).m_string, "[^0-9]", "")); return Convert.ToDouble(((LSL_String) src.Data[index]).m_string);
return Convert.ToDouble(src.Data[index]); return Convert.ToDouble(src.Data[index]);
} }
catch (FormatException) catch (FormatException)