From: SpaceManiac Date: Mon, 2 Dec 2024 21:29:44 +0000 (-0800) Subject: Fix lobby countdown not showing hours (#33685) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b800d9826055aab66334ec2a576dafb474ca8743;p=space-station-14.git Fix lobby countdown not showing hours (#33685) --- diff --git a/Content.Client/Lobby/LobbyState.cs b/Content.Client/Lobby/LobbyState.cs index 1aabc4ff38..1361ca57cd 100644 --- a/Content.Client/Lobby/LobbyState.cs +++ b/Content.Client/Lobby/LobbyState.cs @@ -116,7 +116,7 @@ namespace Content.Client.Lobby return; } - Lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-round-not-started"); + Lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-round-not-started"); string text; if (_gameTicker.Paused) @@ -136,6 +136,10 @@ namespace Content.Client.Lobby { text = Loc.GetString(seconds < -5 ? "lobby-state-right-now-question" : "lobby-state-right-now-confirmation"); } + else if (difference.TotalHours >= 1) + { + text = $"{Math.Floor(difference.TotalHours)}:{difference.Minutes:D2}:{difference.Seconds:D2}"; + } else { text = $"{difference.Minutes}:{difference.Seconds:D2}";