From f57c54cc9018ad613d39d35d1c832250c5f3e5a5 Mon Sep 17 00:00:00 2001 From: Morb <14136326+Morb0@users.noreply.github.com> Date: Tue, 7 Mar 2023 07:38:54 -0800 Subject: [PATCH] Fix chat size cvar float parse (#14468) * Fix chat size float parse * Use dot separator * Return comma value separator --- .../UserInterface/Systems/Chat/ChatUIController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs index f493c3e6f5..1097e7e851 100644 --- a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs +++ b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs @@ -1,3 +1,4 @@ +using System.Globalization; using System.Linq; using Content.Client.Administration.Managers; using Content.Client.Chat; @@ -236,8 +237,8 @@ public sealed class ChatUIController : UIController var split = sizing.Split(","); var chatSize = new Vector2( - float.Parse(split[0]), - float.Parse(split[1])); + float.Parse(split[0], CultureInfo.InvariantCulture), + float.Parse(split[1], CultureInfo.InvariantCulture)); screen.SetChatSize(chatSize);