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

LibCards+Solitaire: Rename CardStack::move_to_stack() -> take_all()

`a.move_to_stack(b)` sounded too much like it moves a's cards to b, when
it actually moves b's cards to a.
This commit is contained in:
Sam Atkins 2023-01-22 21:27:23 +00:00 committed by Linus Groh
parent 3423b54eb9
commit 83687f85df
3 changed files with 3 additions and 3 deletions

View file

@ -424,7 +424,7 @@ void Game::draw_cards()
update(stock.bounding_box());
} else {
auto play_bounding_box = play.bounding_box();
play.move_to_stack(waste);
play.take_all(waste);
size_t cards_to_draw = 0;
switch (m_mode) {