[Fix] guiy fix, no longet see the 0 in weightless cargo.
This commit is contained in:
parent
56ef245ae1
commit
3df258229c
16
src/player.c
16
src/player.c
@ -660,11 +660,17 @@ void player_render(void) {
|
|||||||
|
|
||||||
for(i = 0; i < MIN(player->ncommodities,3); i++) {
|
for(i = 0; i < MIN(player->ncommodities,3); i++) {
|
||||||
j -= gl_smallFont.h + 3;
|
j -= gl_smallFont.h + 3;
|
||||||
gl_print(&gl_smallFont,
|
if(player->commodities[i].quantity) // Quantity is over.
|
||||||
gui.misc.x + 13, j,
|
gl_print(&gl_smallFont,
|
||||||
NULL, "%d %s%s", player->commodities[i].quantity,
|
gui.misc.x + 13, j,
|
||||||
player->commodities[i].commodity->name,
|
NULL, "%d %s%s", player->commodities[i].quantity,
|
||||||
(player->commodities[i].id) ? "*" : "");
|
player->commodities[i].commodity->name,
|
||||||
|
(player->commodities[i].id) ? "*" : "");
|
||||||
|
else // Basically for weightless mission stuff.
|
||||||
|
gl_print(&gl_smallFont,
|
||||||
|
gui.misc.x + 13, j,
|
||||||
|
NULL, "%s%s", player->commodities[i].commodity->name,
|
||||||
|
(player->commodities[i].id) ? "*" : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user