From a46b93c917d9a88208b1660023fc39c59e50956c Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 29 May 2026 21:39:52 +0200 Subject: [PATCH] =?UTF-8?q?tweak(hud):=20el=20mode=20num=C3=A8ric=20de=20v?= =?UTF-8?q?ides=20mostra=20repuestos=20(vides-1),=20coherent=20amb=20els?= =?UTF-8?q?=20slots?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/game/systems/init_hud_animator.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/game/systems/init_hud_animator.cpp b/source/game/systems/init_hud_animator.cpp index a1079a0..5c9a80a 100644 --- a/source/game/systems/init_hud_animator.cpp +++ b/source/game/systems/init_hud_animator.cpp @@ -232,8 +232,11 @@ namespace Systems::InitHud { float scale, float spacing) { if (Defaults::Hud::LIVES_DISPLAY == Defaults::Hud::LivesDisplay::DIGITS) { - // Mateixa regla que el nivell: zeros a l'esquerra atenuats. - drawScore(text, livesDigits(lives), bright, dim, active, x_left, top_y, scale, spacing); + // Repuestos = vides − 1 (la nau en joc no compta), igual que els + // slots. Mateixa regla de color que el nivell: zeros a l'esquerra + // atenuats, dígit significatiu en endavant encès. + const int SPARES = std::max(0, lives - 1); + drawScore(text, livesDigits(SPARES), bright, dim, active, x_left, top_y, scale, spacing); return; } drawSlots(renderer, shape, lives, bright, dim, x_left, center_y, scale, spacing);