From: Morb <14136326+Morb0@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:38:54 +0000 (-0800) Subject: Fix chat size cvar float parse (#14468) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f57c54cc9018ad613d39d35d1c832250c5f3e5a5;p=space-station-14.git Fix chat size cvar float parse (#14468) * Fix chat size float parse * Use dot separator * Return comma value separator --- 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);