From 1cce0df0fa4fdcc9395f55ad6182fe02c060b2aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 11 Sep 2025 21:12:40 +0200 Subject: [PATCH] Stuff. Took 15 minutes --- cockatrice/src/game/player/player_graphics_item.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cockatrice/src/game/player/player_graphics_item.cpp b/cockatrice/src/game/player/player_graphics_item.cpp index e883b51d7..b7602ed9a 100644 --- a/cockatrice/src/game/player/player_graphics_item.cpp +++ b/cockatrice/src/game/player/player_graphics_item.cpp @@ -182,10 +182,13 @@ void PlayerGraphicsItem::rearrangeZones() handZoneGraphicsItem->setWidth(tableZoneGraphicsItem->getWidth() + stackZoneGraphicsItem->boundingRect().width()); } else { - player->setHandVisible(true); - - handZoneGraphicsItem->setPos(base); - base += QPointF(handZoneGraphicsItem->boundingRect().width(), 0); + if (player->getHandZone()->contentsKnown()) { + player->setHandVisible(true); + handZoneGraphicsItem->setPos(base); + base += QPointF(handZoneGraphicsItem->boundingRect().width(), 0); + } else { + player->setHandVisible(false); + } stackZoneGraphicsItem->setPos(base); base += QPointF(stackZoneGraphicsItem->boundingRect().width(), 0);