[Change] Let's also grey out secondary weapon when we are out of ammo.

This commit is contained in:
Allanis 2013-11-30 22:10:05 +00:00
parent 11bbd0854f
commit 2f2143742a

View File

@ -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,