From 8d8b1d95319fd3ce878d6ec67cae27fc3fcc15e8 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 11 Jun 2021 12:26:23 +0100 Subject: [PATCH] Solitaire: Correctly score automatic moves using --- Userland/Games/Solitaire/Game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp index 81091f242ee..0b7a4c86e52 100644 --- a/Userland/Games/Solitaire/Game.cpp +++ b/Userland/Games/Solitaire/Game.cpp @@ -326,8 +326,6 @@ void Game::doubleclick_event(GUI::MouseEvent& event) to_check.push(move(card)); } } - - update_score(10); } break; } @@ -360,6 +358,8 @@ void Game::move_card(CardStack& from, CardStack& to) remember_move_for_undo(from, to, m_focused_cards); + score_move(from, to); + update(to.bounding_box()); }