]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove lobby preload (#15670)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 23 Apr 2023 03:14:25 +0000 (13:14 +1000)
committerGitHub <noreply@github.com>
Sun, 23 Apr 2023 03:14:25 +0000 (13:14 +1000)
Content.Client/GameTicking/Managers/ClientGameTicker.cs
Content.Client/Lobby/LobbyState.cs
Content.Shared/GameTicking/SharedGameTicker.cs
Resources/Locale/en-US/lobby/lobby-state.ftl

index 5177ad037c4d16b197128479386a712f1b952fc1..f1e29a2ea1a1cae01c3d17c4bdb8f353d1cdc768 100644 (file)
@@ -34,7 +34,6 @@ namespace Content.Client.GameTicking.Managers
         [ViewVariables] public bool DisallowedLateJoin { get; private set; }
         [ViewVariables] public string? ServerInfoBlob { get; private set; }
         [ViewVariables] public TimeSpan StartTime { get; private set; }
-        [ViewVariables] public TimeSpan PreloadTime { get; private set; }
         [ViewVariables] public TimeSpan RoundStartTimeSpan { get; private set; }
         [ViewVariables] public new bool Paused { get; private set; }
 
@@ -90,7 +89,6 @@ namespace Content.Client.GameTicking.Managers
         private void LobbyStatus(TickerLobbyStatusEvent message)
         {
             StartTime = message.StartTime;
-            PreloadTime = message.PreloadTime;
             RoundStartTimeSpan = message.RoundStartTimeSpan;
             IsGameStarted = message.IsRoundStarted;
             AreWeReady = message.YouAreReady;
index 9be0a7618a3e757ed139177f34eaff123630af1e..1ba2e318add964f99cc0199f0874f8f36d11bd35 100644 (file)
@@ -136,15 +136,17 @@ namespace Content.Client.Lobby
                 return;
             }
 
+            _lobby!.StationTime.Text =  Loc.GetString("lobby-state-player-status-round-not-started");
             string text;
 
             if (_gameTicker.Paused)
             {
                 text = Loc.GetString("lobby-state-paused");
             }
-            else if ((_gameTicker.StartTime - _gameTicker.PreloadTime) < _gameTiming.CurTime)
+            else if (_gameTicker.StartTime < _gameTiming.CurTime)
             {
-                text = Loc.GetString("lobby-state-preloading");
+                _lobby!.StartTime.Text = Loc.GetString("lobby-state-soon");
+                return;
             }
             else
             {
@@ -160,7 +162,6 @@ namespace Content.Client.Lobby
                 }
             }
 
-            _lobby!.StationTime.Text =  Loc.GetString("lobby-state-player-status-round-not-started");
             _lobby!.StartTime.Text = Loc.GetString("lobby-state-round-start-countdown-text", ("timeLeft", text));
         }
 
index 28f29a4142ec06af24a826f38bf85f1d24a5ee68..47ea4e950edae06d2c05fe249daa1147de1161e7 100644 (file)
@@ -45,7 +45,6 @@ namespace Content.Shared.GameTicking
         public bool YouAreReady { get; }
         // UTC.
         public TimeSpan StartTime { get; }
-        public TimeSpan PreloadTime { get; }
         public TimeSpan RoundStartTimeSpan { get; }
         public bool Paused { get; }
 
@@ -56,7 +55,6 @@ namespace Content.Shared.GameTicking
             LobbyBackground = lobbyBackground;
             YouAreReady = youAreReady;
             StartTime = startTime;
-            PreloadTime = preloadTime;
             RoundStartTimeSpan = roundStartTimeSpan;
             Paused = paused;
         }
index e63954a56009c45effa831b5b018931542d37677..0e86f8ff6e7b388095f19d24a6efe61752372725 100644 (file)
@@ -1,8 +1,8 @@
 lobby-state-paused = Paused
-lobby-state-preloading = Soon
+lobby-state-soon = Round starting soon
 lobby-state-right-now-question = Right Now?
 lobby-state-right-now-confirmation = Right Now
-lobby-state-round-start-countdown-text = Round Starts In: {$timeLeft}
+lobby-state-round-start-countdown-text = Round starts In: {$timeLeft}
 lobby-state-ready-button-join-state = Join
 lobby-state-ready-button-ready-up-state = Ready Up
 lobby-state-player-status-not-ready = Not Ready