mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00: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: 8d8b1d9531
Pull-request: https://github.com/SerenityOS/serenity/pull/7993
Issue: https://github.com/SerenityOS/serenity/issues/7991
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue