Only print item quantity if it's more than 0.

This commit is contained in:
Steve 2018-02-27 08:16:18 +00:00
parent 4d41f7f56c
commit b31d061d42
1 changed files with 4 additions and 1 deletions

View File

@ -318,7 +318,10 @@ void drawMissionStatus(void)
blitRectScaled(atlasTexture->texture, x + mid, y + mid, rw, rh, r, 1);
drawText(x + size - 5, y, 14, TA_RIGHT, colors.white, "%d", world.bob->items[i]->value);
if (world.bob->items[i]->value > 0)
{
drawText(x + size - 5, y, 14, TA_RIGHT, colors.white, "%d", world.bob->items[i]->value);
}
}
x += (size + 30);