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
parent
32ddeab5e3
commit
98b2d3a7f2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue