From 243763f5701a91790852c8666d571105ac03a6a2 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Fri, 28 Aug 2015 19:33:59 +0100 Subject: [PATCH] Remove redundant invariant culture handling for float, decimal, double. This is already handled by the type converter portion of the code. --- OpenRA.Game/FieldSaver.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/OpenRA.Game/FieldSaver.cs b/OpenRA.Game/FieldSaver.cs index 70b17ca936..bfeb669fa1 100644 --- a/OpenRA.Game/FieldSaver.cs +++ b/OpenRA.Game/FieldSaver.cs @@ -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();