diff options
author | Griffin Smith <root@gws.fyi> | 2019-12-23T23·10-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-12-23T23·20-0500 |
commit | 13516911366a484ee5484166520133e056010515 (patch) | |
tree | d7618f2062ad93a3800b0b4e20b45e22ad88faa6 /src/Xanthous/Game/Arbitrary.hs | |
parent | 32421916e09dc56d91707af10474644276712fc5 (diff) |
Don't send the welcome message when loading
Don't re-send the welcome message when loading the game if it's already been sent. This is done by just tracking whether or not we've sent it as a boolean in the game state, which may be a bit of a hack but should be fine
Diffstat (limited to 'src/Xanthous/Game/Arbitrary.hs')
-rw-r--r-- | src/Xanthous/Game/Arbitrary.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Xanthous/Game/Arbitrary.hs b/src/Xanthous/Game/Arbitrary.hs index f4c83e005146..a4e0255ca8c2 100644 --- a/src/Xanthous/Game/Arbitrary.hs +++ b/src/Xanthous/Game/Arbitrary.hs @@ -28,6 +28,7 @@ instance Arbitrary GameState where let _promptState = NoPrompt -- TODO _activePanel <- arbitrary _debugState <- arbitrary + _sentWelcome <- arbitrary pure $ GameState {..} |