]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix lobby countdown not showing hours (#33685)
authorSpaceManiac <tad@platymuus.com>
Mon, 2 Dec 2024 21:29:44 +0000 (13:29 -0800)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2024 21:29:44 +0000 (13:29 -0800)
Content.Client/Lobby/LobbyState.cs

index 1aabc4ff381e784ffbd92301fceeb9c3c639e29f..1361ca57cd282cd92519714d540a252f9cb6c806 100644 (file)
@@ -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}";