From ad5f1d4464b9b434586dec156293d2a907f39bb2 Mon Sep 17 00:00:00 2001 From: Allanis Date: Tue, 21 Jan 2014 20:11:27 +0000 Subject: [PATCH] [Fix] Uhm, fix the bug introduced displaying weapon name. --- src/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/player.c b/src/player.c index 8b5627e..d7fa324 100644 --- a/src/player.c +++ b/src/player.c @@ -991,7 +991,7 @@ void player_renderGUI(void) { /* Launcher. */ if(player->ammo != NULL) { /* Use the ammunitions name. */ - i = gl_printWidth(f, "%s", outfit_ammo(player->secondary->outfit)); + i = gl_printWidth(f, "%s", outfit_ammo(player->secondary->outfit)->name); if(i > gui.weapon.w) /* Font is too big. */ f = &gl_smallFont; @@ -1000,7 +1000,7 @@ void player_renderGUI(void) { gl_printMid(f, (int)gui.weapon.w, gui.weapon.x, gui.weapon.y - 5, (player->ammo) ? c : &cGrey, "%s", - outfit_ammo(player->secondary->outfit)); + outfit_ammo(player->secondary->outfit)->name); /* Print ammo underneath to the left. */ gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x,