same for double
This commit is contained in:
@@ -66,11 +66,13 @@ namespace OpenRA
|
|||||||
((int)c.B).Clamp(0, 255));
|
((int)c.B).Clamp(0, 255));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't save floats in settings.yaml using country-specific decimal separators which can be misunderstood as group seperators.
|
// Don't save using country-specific decimal separators which can be misunderstood as group seperators.
|
||||||
if (t == typeof(float))
|
if (t == typeof(float))
|
||||||
return ((float)v).ToString(CultureInfo.InvariantCulture);
|
return ((float)v).ToString(CultureInfo.InvariantCulture);
|
||||||
if (t == typeof(decimal))
|
if (t == typeof(decimal))
|
||||||
return ((decimal)v).ToString(CultureInfo.InvariantCulture);
|
return ((decimal)v).ToString(CultureInfo.InvariantCulture);
|
||||||
|
if (t == typeof(double))
|
||||||
|
return ((double)v).ToString(CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
if (t == typeof(Rectangle))
|
if (t == typeof(Rectangle))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user