Skip to content

Commit

Permalink
Make autoplay imply cheating (#1104)
Browse files Browse the repository at this point in the history
I can't believe we forgot to do this small thing. 😅 

- closes #816
  • Loading branch information
xsebek authored Feb 12, 2023
1 parent 4c5b7f8 commit b62af67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swarm/TUI/Model/StateUpdate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ initAppState AppOpts {..} = do
let isRunningInitialProgram = isJust scriptToRun || autoPlay
skipMenu = isJust userScenario || isRunningInitialProgram || isJust userSeed
gs <- initGameState
(warnings, ui) <- initUIState (not skipMenu) cheatMode
(warnings, ui) <- initUIState (not skipMenu) (cheatMode || autoPlay)
let logWarning rs w = rs & eventLog %~ logEvent (ErrorTrace Error) ("UI Loading", -8) (prettyFailure w)
let rs = List.foldl' logWarning initRuntimeState warnings
case skipMenu of
Expand Down

0 comments on commit b62af67

Please sign in to comment.