Solitaire: Correctly score automatic moves using <tab>

This commit is contained in:
Sam Atkins 2021-06-11 12:26:23 +01:00 committed by Andreas Kling
parent 862ba64037
commit 8d8b1d9531
Notes: sideshowbarker 2024-07-18 12:24:09 +09:00

View File

@ -326,8 +326,6 @@ void Game::doubleclick_event(GUI::MouseEvent& event)
to_check.push(move(card)); to_check.push(move(card));
} }
} }
update_score(10);
} }
break; break;
} }
@ -360,6 +358,8 @@ void Game::move_card(CardStack& from, CardStack& to)
remember_move_for_undo(from, to, m_focused_cards); remember_move_for_undo(from, to, m_focused_cards);
score_move(from, to);
update(to.bounding_box()); update(to.bounding_box());
} }