From cf9a4e9a029127e21be01957ae45c99100102e90 Mon Sep 17 00:00:00 2001 From: DawnFire42 Date: Mon, 10 Aug 2026 16:36:43 -0400 Subject: [PATCH] Remove explicit z-value from command zone like other zones --- cockatrice/src/game_graphics/player/player_graphics_item.cpp | 1 - cockatrice/src/game_graphics/z_values.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/cockatrice/src/game_graphics/player/player_graphics_item.cpp b/cockatrice/src/game_graphics/player/player_graphics_item.cpp index a6f6d2e86..315ba4082 100644 --- a/cockatrice/src/game_graphics/player/player_graphics_item.cpp +++ b/cockatrice/src/game_graphics/player/player_graphics_item.cpp @@ -131,7 +131,6 @@ void PlayerGraphicsItem::initializeZones() // Command zone commandZoneGraphicsItem = new CommandZone(player->getCommandZone(), ZoneSizes::COMMAND_ZONE_HEIGHT, this); - commandZoneGraphicsItem->setZValue(ZValues::COMMAND_ZONE); commandZoneGraphicsItem->setVisible(false); connect(commandZoneGraphicsItem, &CommandZone::minimizedChanged, this, &PlayerGraphicsItem::rearrangeZones); connect(commandZoneGraphicsItem, &CommandZone::effectiveHeightChanged, this, &PlayerGraphicsItem::rearrangeZones); diff --git a/cockatrice/src/game_graphics/z_values.h b/cockatrice/src/game_graphics/z_values.h index 7b30054a9..8847c2233 100644 --- a/cockatrice/src/game_graphics/z_values.h +++ b/cockatrice/src/game_graphics/z_values.h @@ -29,9 +29,6 @@ namespace ZValues { -/** @brief Command zone sits at standard zone level */ -constexpr qreal COMMAND_ZONE = 1.0; - // Expose base for callers that need it constexpr qreal OVERLAY_BASE = ZValueLayerManager::OVERLAY_BASE;