summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-22 21:27:23 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-22 21:31:36 +0000
commit83687f85df7fd1b454fecee27699c445568b18f3 (patch)
tree56a143c27d09f3b3521ac064c06d95da6164f150 /Userland/Games
parent3423b54eb918eac7abf8a0be5a58a00088cec4ae (diff)
downloadserenity-83687f85df7fd1b454fecee27699c445568b18f3.zip
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.
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/Solitaire/Game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp
index 9a3cadfe88..8028d22558 100644
--- a/Userland/Games/Solitaire/Game.cpp
+++ b/Userland/Games/Solitaire/Game.cpp
@@ -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) {