[Fix] guiy fix, no longet see the 0 in weightless cargo.

This commit is contained in:
Allanis 2013-04-08 23:43:42 +01:00
parent 56ef245ae1
commit 3df258229c

View File

@ -660,11 +660,17 @@ void player_render(void) {
for(i = 0; i < MIN(player->ncommodities,3); i++) {
j -= gl_smallFont.h + 3;
gl_print(&gl_smallFont,
gui.misc.x + 13, j,
NULL, "%d %s%s", player->commodities[i].quantity,
player->commodities[i].commodity->name,
(player->commodities[i].id) ? "*" : "");
if(player->commodities[i].quantity) // Quantity is over.
gl_print(&gl_smallFont,
gui.misc.x + 13, j,
NULL, "%d %s%s", player->commodities[i].quantity,
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) ? "*" : "");
}
}