mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
Solitaire: Allow automatic moves to end the game and animate
Previously, if a tab-move moved all the remaining cards to the foundations, the game would not notice until you moved a card away and then back again. I had to add a 1-frame delay to starting the animation, so that it would have time to re-paint the foundation in that case.
This commit is contained in:
parent
5eef07d232
commit
cf504ccc6a
2 changed files with 20 additions and 8 deletions
|
@ -198,6 +198,7 @@ private:
|
|||
bool m_mouse_down { false };
|
||||
|
||||
Animation m_animation;
|
||||
bool m_start_game_over_animation_next_frame { false };
|
||||
bool m_game_over_animation { false };
|
||||
bool m_waiting_for_new_game { true };
|
||||
bool m_new_game_animation { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue