]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix the game giving up forever when not being able to start a preset (#27359)
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Fri, 26 Apr 2024 13:02:08 +0000 (06:02 -0700)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 13:02:08 +0000 (23:02 +1000)
Content.Server/GameTicking/GameTicker.RoundFlow.cs

index 792d838169c26daeca1e5991989719452d0d4eb8..83d8390dd4bb8d84992ce65099f290b2975bb82a 100644 (file)
@@ -245,7 +245,10 @@ namespace Content.Server.GameTicking
             var origReadyPlayers = readyPlayers.ToArray();
 
             if (!StartPreset(origReadyPlayers, force))
+            {
+                _startingRound = false;
                 return;
+            }
 
             // MapInitialize *before* spawning players, our codebase is too shit to do it afterwards...
             _mapManager.DoMapInitialize(DefaultMap);