mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:27: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:
parent
4f496e97fe
commit
3ce87ea5f9
2 changed files with 6 additions and 1 deletions
|
@ -20,6 +20,7 @@ public:
|
|||
|
||||
virtual ~Game() override = default;
|
||||
|
||||
bool is_paused() const { return !has_timer(); }
|
||||
void start();
|
||||
void pause();
|
||||
void reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue