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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user