mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
Solitaire: Correctly score automatic moves using <tab>
This commit is contained in:
parent
862ba64037
commit
8d8b1d9531
Notes:
sideshowbarker
2024-07-18 12:24:09 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/8d8b1d95319 Pull-request: https://github.com/SerenityOS/serenity/pull/7993 Issue: https://github.com/SerenityOS/serenity/issues/7991 Reviewed-by: https://github.com/trflynn89 ✅
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user