Remove redundant invariant culture handling for float, decimal, double.

This is already handled by the type converter portion of the code.
This commit is contained in:
RoosterDragon
2015-08-28 19:33:59 +01:00
parent f62bc3c226
commit 243763f570

View File

@@ -70,14 +70,6 @@ namespace OpenRA
((int)c.B).Clamp(0, 255));
}
// Don't save using country-specific decimal separators which can be misunderstood as group seperators.
if (t == typeof(float))
return ((float)v).ToString(CultureInfo.InvariantCulture);
if (t == typeof(decimal))
return ((decimal)v).ToString(CultureInfo.InvariantCulture);
if (t == typeof(double))
return ((double)v).ToString(CultureInfo.InvariantCulture);
if (t == typeof(ImageFormat))
{
return ((ImageFormat)v).ToString();