1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:47:45 +00:00

Snake: Remember if game was paused when picking color

If we were paused before, don't start the game after closing the dialog.
This commit is contained in:
Sam Atkins 2023-03-16 11:00:00 +00:00 committed by Andreas Kling
parent 4f496e97fe
commit 3ce87ea5f9
2 changed files with 6 additions and 1 deletions

View file

@ -20,6 +20,7 @@ public:
virtual ~Game() override = default;
bool is_paused() const { return !has_timer(); }
void start();
void pause();
void reset();