1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:27:34 +00:00

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

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());
} }