summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-12-25 11:18:51 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-12-25 11:18:51 +0000
commit962aae8bbd272d60d2a6fa0d8da50b0cb4e7c6a9 (patch)
tree0abc58dce86353ee7748ac594988ecadb2dc8206 /src/gui/inventory.cpp
parentb9ad39c8de89ef780f396fbeaf7fe81686484f9b (diff)
downloadmana-962aae8bbd272d60d2a6fa0d8da50b0cb4e7c6a9.tar.gz
mana-962aae8bbd272d60d2a6fa0d8da50b0cb4e7c6a9.tar.bz2
mana-962aae8bbd272d60d2a6fa0d8da50b0cb4e7c6a9.tar.xz
mana-962aae8bbd272d60d2a6fa0d8da50b0cb4e7c6a9.zip
Xmas quest update
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r--src/gui/inventory.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp
index 807fae15..9d48f0fb 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -53,11 +53,12 @@ void TmwInventory::draw(BITMAP * buffer) {
update_dialog(inventory_player);
for(int i=0;i<INVENTORY_SIZE;i++) {
if(items[i].quantity>0) {
- if(items[i].id>=501 && items[i].id<=510)
- masked_blit((BITMAP *)itemset[items[i].id-500].dat, gui_bitmap, 0, 0, inventory_dialog[0].x+24*i, inventory_dialog[0].y+26, 22, 22);
- else
- masked_blit((BITMAP *)itemset[0].dat, gui_bitmap, 0, 0, inventory_dialog[0].x+24*i, inventory_dialog[0].y+26, 22, 22);
- textprintf_ex(gui_bitmap, font, inventory_dialog[0].x+24*i, inventory_dialog[0].y+44, makecol(0,0,0), -1, "%i", items[i].quantity);
+ if(items[i].id>=501 && items[i].id<=511)
+ draw_rle_sprite(gui_bitmap, (RLE_SPRITE *)itemset[items[i].id-501].dat, inventory_dialog[0].x+24*i, inventory_dialog[0].y+26);
+ //else
+ //masked_blit((BITMAP *)itemset[0].dat, gui_bitmap, 0, 0, inventory_dialog[0].x+24*i, inventory_dialog[0].y+26, 22, 22);
+
+ textprintf_ex(gui_bitmap, font, inventory_dialog[0].x+24*i, inventory_dialog[0].y+44, makecol(0,0,0), -1, "%i", items[i].quantity);
}
}
}