1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

Solitaire: Prevent undo when the game is over

This commit is contained in:
Sam Atkins 2021-06-12 19:33:11 +01:00 committed by Linus Groh
parent cf504ccc6a
commit 8ee447b718

View file

@ -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.