From 8ce65f73107b64b4623aba25eb337626aa6986ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 23 Jul 2014 06:33:52 +0200 Subject: [PATCH] same for double --- OpenRA.Game/FieldSaver.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/FieldSaver.cs b/OpenRA.Game/FieldSaver.cs index 18ee20bb7b..e9a8ebddb0 100644 --- a/OpenRA.Game/FieldSaver.cs +++ b/OpenRA.Game/FieldSaver.cs @@ -66,11 +66,13 @@ namespace OpenRA ((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)) 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(Rectangle)) {