From d77b46d4d85b7fbbf96b373addb4f08b999de5c6 Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Wed, 3 May 2023 12:08:27 +0300 Subject: [PATCH] [fix] vector2utils (#13) Co-authored-by: Mona Hmiza <> --- Content.Shared/White/Utils/Vector2Utils.cs | 5 +++-- Content.Shared/White/WhiteCVars.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.Shared/White/Utils/Vector2Utils.cs b/Content.Shared/White/Utils/Vector2Utils.cs index 6cf3c7e789..448858389d 100644 --- a/Content.Shared/White/Utils/Vector2Utils.cs +++ b/Content.Shared/White/Utils/Vector2Utils.cs @@ -1,4 +1,5 @@ using System.Numerics; +using System.Globalization; namespace Content.Shared.White.Utils; @@ -14,8 +15,8 @@ public static class Vector2Utils return new Vector2(0, 0); } - var hasX = float.TryParse(dataSplit[0], out var x); - var hasY = float.TryParse(dataSplit[1], out var y); + var hasX = float.TryParse(dataSplit[0], CultureInfo.InvariantCulture, out var x); + var hasY = float.TryParse(dataSplit[1], CultureInfo.InvariantCulture, out var y); if (!hasX || !hasY) { diff --git a/Content.Shared/White/WhiteCVars.cs b/Content.Shared/White/WhiteCVars.cs index f91f617cfe..b54400d3af 100644 --- a/Content.Shared/White/WhiteCVars.cs +++ b/Content.Shared/White/WhiteCVars.cs @@ -164,7 +164,7 @@ public sealed class WhiteCVars */ public static readonly CVarDef SeparatedChatSize = - CVarDef.Create("white.chat_size_separated", "0.6f;0", CVar.CLIENTONLY | CVar.ARCHIVE); + CVarDef.Create("white.chat_size_separated", "0.6;0", CVar.CLIENTONLY | CVar.ARCHIVE); public static readonly CVarDef DefaultChatSize = CVarDef.Create("white.chat_size_default", "300;500", CVar.CLIENTONLY | CVar.ARCHIVE);