From 2f2143742a3573382c78a3f6ec258548e6a3be69 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sat, 30 Nov 2013 22:10:05 +0000
Subject: [PATCH] [Change] Let's also grey out secondary weapon when we are out
 of ammo.

---
 src/player.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/player.c b/src/player.c
index be5c91e..6e10b51 100644
--- a/src/player.c
+++ b/src/player.c
@@ -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,