mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00:00
Solitaire: Correctly score automatic moves using <tab>
This commit is contained in:
parent
862ba64037
commit
8d8b1d9531
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