[Fix] Uhm, fix the bug introduced displaying weapon name.
This commit is contained in:
parent
b426a77758
commit
ad5f1d4464
@ -991,7 +991,7 @@ void player_renderGUI(void) {
|
|||||||
/* Launcher. */
|
/* Launcher. */
|
||||||
if(player->ammo != NULL) {
|
if(player->ammo != NULL) {
|
||||||
/* Use the ammunitions name. */
|
/* 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)
|
if(i > gui.weapon.w)
|
||||||
/* Font is too big. */
|
/* Font is too big. */
|
||||||
f = &gl_smallFont;
|
f = &gl_smallFont;
|
||||||
@ -1000,7 +1000,7 @@ void player_renderGUI(void) {
|
|||||||
gl_printMid(f, (int)gui.weapon.w, gui.weapon.x,
|
gl_printMid(f, (int)gui.weapon.w, gui.weapon.x,
|
||||||
gui.weapon.y - 5,
|
gui.weapon.y - 5,
|
||||||
(player->ammo) ? c : &cGrey, "%s",
|
(player->ammo) ? c : &cGrey, "%s",
|
||||||
outfit_ammo(player->secondary->outfit));
|
outfit_ammo(player->secondary->outfit)->name);
|
||||||
|
|
||||||
/* Print ammo underneath to the left. */
|
/* Print ammo underneath to the left. */
|
||||||
gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x,
|
gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x,
|
||||||
|
Loading…
Reference in New Issue
Block a user