From 7e887031dec7423816278a704a8a035758233805 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 27 Dec 2019 23:10:57 +0100 Subject: [PATCH] bleh --- MLEM.Extended/Tiled/TiledExtensions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MLEM.Extended/Tiled/TiledExtensions.cs b/MLEM.Extended/Tiled/TiledExtensions.cs index 0d3beaf..a4bb3ab 100644 --- a/MLEM.Extended/Tiled/TiledExtensions.cs +++ b/MLEM.Extended/Tiled/TiledExtensions.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using Microsoft.Xna.Framework; using MonoGame.Extended; @@ -25,12 +26,12 @@ namespace MLEM.Extended.Tiled { } public static float GetFloat(this TiledMapProperties properties, string key) { - float.TryParse(properties.Get(key), out var val); + float.TryParse(properties.Get(key), NumberStyles.Number, NumberFormatInfo.InvariantInfo, out var val); return val; } public static int GetInt(this TiledMapProperties properties, string key) { - int.TryParse(properties.Get(key), out var val); + int.TryParse(properties.Get(key), NumberStyles.Number, NumberFormatInfo.InvariantInfo, out var val); return val; }