diff options
Diffstat (limited to 'Userland/Games/Hearts/Game.cpp')
-rw-r--r-- | Userland/Games/Hearts/Game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Games/Hearts/Game.cpp b/Userland/Games/Hearts/Game.cpp index 8952ec2e3b..fd19ade0bc 100644 --- a/Userland/Games/Hearts/Game.cpp +++ b/Userland/Games/Hearts/Game.cpp @@ -397,6 +397,11 @@ void Game::let_player_play_card() if (player.is_human) { m_human_can_play = true; + if constexpr (HEARTS_DEBUG) { + auto card_index = pick_card(player); + auto& card = player.hand[card_index]; + card->set_inverted(true); + } update(); return; } |