diff options
author | Sam Atkins <github@samatkins.co.uk> | 2021-06-11 12:26:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-11 22:42:38 +0200 |
commit | 8d8b1d95319fd3ce878d6ec67cae27fc3fcc15e8 (patch) | |
tree | e3940206f5410c9bcff97ca9acd016dec4262d81 /Userland/Games/Solitaire | |
parent | 862ba6403738224ce683397d496ac43dcb806e1c (diff) | |
download | serenity-8d8b1d95319fd3ce878d6ec67cae27fc3fcc15e8.zip |
Solitaire: Correctly score automatic moves using <tab>
Diffstat (limited to 'Userland/Games/Solitaire')
-rw-r--r-- | Userland/Games/Solitaire/Game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp index 81091f242e..0b7a4c86e5 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()); } |