[Fix] Uhm, fix the bug introduced displaying weapon name.

This commit is contained in:
Allanis 2014-01-21 20:11:27 +00:00
parent b426a77758
commit ad5f1d4464

View File

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