mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 03:35:40 +00:00
cb9cab9aca
PR #4198 made the spawn-phase timer count down numSpawnPhaseTurns(), but singleplayer never adds SpawnTimerExecution (GameRunner.ts), so its spawn phase doesn't end on a timer — it ends when the player spawns. The countdown would tick to 0 at ~10s while the phase kept going. In GameRightSidebar.tick(), restore the old static display (maxTimerValue * 60, or 0 when unset) during spawn phase for Singleplayer games, leaving the countdown for all other game types. Uses an explicit gameType check rather than _isSinglePlayer so replays of multiplayer games still count down.