Skip to content

Commit

Permalink
Set replStatus to REPLWorking when running a file via --run (#554)
Browse files Browse the repository at this point in the history
Fixes #333.
  • Loading branch information
byorgey authored Jul 15, 2022
1 parent cf6693b commit c096f71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Swarm/Game/State.hs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,11 @@ scenarioToGameState scenario userSeed toRun g = do
, _viewCenterRule = VCRobot baseID
, _viewCenter = V2 0 0
, _needsRedraw = False
, _replStatus = REPLDone
, -- When starting base with the run flag, REPL status must be set to working,
-- otherwise the store of definition cells is not saved (see #333)
_replStatus = case toRun of
Nothing -> REPLDone
Just _ -> REPLWorking (Forall [] (TyCmd TyUnit)) Nothing
, _messageQueue = []
, _focusedRobotID = baseID
, _ticks = 0
Expand Down

0 comments on commit c096f71

Please sign in to comment.