[Change] Let's also grey out secondary weapon when we are out of ammo.
This commit is contained in:
parent
11bbd0854f
commit
2f2143742a
@ -982,9 +982,11 @@ void player_renderGUI(void) {
|
||||
/* Font is too big. */
|
||||
f = &gl_smallFont;
|
||||
|
||||
/* Weapon name. */
|
||||
gl_printMid(f, (int)gui.weapon.w, gui.weapon.x,
|
||||
gui.weapon.y - 5,
|
||||
c, "%s", player->secondary->outfit->u.lau.ammo);
|
||||
(player->ammo) ? c : &cGrey, "%s",
|
||||
player->secondary->outfit->u.lau.ammo);
|
||||
|
||||
/* Print ammo underneath to the left. */
|
||||
gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x,
|
||||
|
Loading…
Reference in New Issue
Block a user