Skip to content

Commit

Permalink
Fix autopause on complete game (#2181)
Browse files Browse the repository at this point in the history
* closes #2174
  • Loading branch information
xsebek authored Oct 18, 2024
1 parent 050bde8 commit d30cd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swarm-engine/Swarm/Game/Step.hs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ hypotheticalWinCheck em g ws oc = do

let gameFinished = newWinState /= Ongoing
let finishedObjectives = notNull queue
when (gameFinished || (finishedObjectives && shouldPause == PauseOnAnyObjective)) $
when (finishedObjectives && (gameFinished || shouldPause == PauseOnAnyObjective)) $
temporal . runStatus .= AutoPause

mapM_ handleException $ exceptions finalAccumulator
Expand Down

0 comments on commit d30cd6a

Please sign in to comment.