mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +00:00
Solitaire: Prevent undo when the game is over
This commit is contained in:
parent
cf504ccc6a
commit
8ee447b718
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ void Game::start_game_over_animation()
|
|||
if (m_game_over_animation)
|
||||
return;
|
||||
|
||||
m_last_move = {};
|
||||
if (on_undo_availability_change)
|
||||
on_undo_availability_change(false);
|
||||
|
||||
create_new_animation_card();
|
||||
|
||||
// We wait one frame, to make sure that the foundation stacks are repainted before we start.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue