Hide life counter when lives is -1
This commit is contained in:
parent
daa825b532
commit
925a0b276f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue