From 91981d679d229091ba41cbe76976a99540bdf9e9 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 5 Sep 2020 21:17:33 -0700 Subject: [PATCH] Hide life counter when lives is -1 --- src/game/hud.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/hud.c b/src/game/hud.c index 54e6fe974..b9796e622 100644 --- a/src/game/hud.c +++ b/src/game/hud.c @@ -299,6 +299,7 @@ void render_hud_mario_lives(void) { char* displayHead = (networkType == NT_SERVER) ? "," : "."; #endif print_text(GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(22), HUD_TOP_Y, displayHead); // 'Mario Head' glyph + if (gHudDisplay.lives == -1) { return; } print_text(GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(38), HUD_TOP_Y, "*"); // 'X' glyph print_text_fmt_int(GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(54), HUD_TOP_Y, "%d", gHudDisplay.lives); }