Don't run initEvent when loading the game

Rather than having a single sentWelcome boolean, avoid running the
initEvent entirely when loading an already-initialized game. Among other
things, this stops us from re-generating a level and then merging it
with the existing one when the game is loaded (oops).
This commit is contained in:
Griffin Smith 2020-02-17 13:24:31 -05:00
parent 69ccf3a77d
commit 1265155ae4
5 changed files with 17 additions and 18 deletions

View file

@ -56,7 +56,6 @@ initialStateFromSeed seed =
_debugState = DebugState
{ _allRevealed = False
}
_sentWelcome = False
in GameState {..}