Spider: Start game if first move is to draw cards
This fixes a bug where the game wouldn't consider it had started.
This commit is contained in:
parent
26cb559d37
commit
821af6a6ef
Notes:
sideshowbarker
2024-07-18 08:02:48 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/SerenityOS/serenity/commit/821af6a6efb Pull-request: https://github.com/SerenityOS/serenity/pull/9036
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ void Game::mousedown_event(GUI::MouseEvent& event)
|
|||
|
||||
if (to_check.bounding_box().contains(click_location)) {
|
||||
if (to_check.type() == CardStack::Type::Stock) {
|
||||
start_timer_if_necessary();
|
||||
draw_cards();
|
||||
} else if (!to_check.is_empty()) {
|
||||
auto& top_card = to_check.peek();
|
||||
|
|
Loading…
Add table
Reference in a new issue