Hide life counter when lives is -1

This commit is contained in:
MysterD 2020-09-05 21:17:33 -07:00
parent daa825b532
commit 925a0b276f
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}