summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-30 15:20:07 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-30 15:20:07 +0000
commitc3b55b7b987cfe58e0503b44011a32507290a3e4 (patch)
tree60858db4e0bd000e2559293b3514395d4badd444 /src/gui/inventory.cpp
parente5f02f3f50022f35910093b6ca5681cecf86228f (diff)
downloadmana-c3b55b7b987cfe58e0503b44011a32507290a3e4.tar.gz
mana-c3b55b7b987cfe58e0503b44011a32507290a3e4.tar.bz2
mana-c3b55b7b987cfe58e0503b44011a32507290a3e4.tar.xz
mana-c3b55b7b987cfe58e0503b44011a32507290a3e4.zip
*** empty log message ***
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r--src/gui/inventory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp
index 8d001880..cc330895 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -159,7 +159,10 @@ void TmwInventory::draw(BITMAP * buffer) {
ypos = inventory_dialog[0].y;
if(items[itemX][itemY].flag) //draw the item
- masked_blit((BITMAP *)itemset[items[itemX][itemY].itemIDNum].dat, buffer, 0, 0, (xpos+items[itemX][itemY].xpos), (ypos+items[itemX][itemY].ypos), 32, 32);
+ if(items[itemX][itemY].itemIDNum>=501 && items[itemX][itemY].itemIDNum<=510)
+ masked_blit((BITMAP *)itemset[items[itemX][itemY].itemIDNum-501].dat, buffer, 0, 0, (xpos+items[itemX][itemY].xpos), (ypos+items[itemX][itemY].ypos), 32, 32);
+ else
+ masked_blit((BITMAP *)itemset[0].dat, buffer, 0, 0, (xpos+items[itemX][itemY].xpos), (ypos+items[itemX][itemY].ypos), 32, 32);
//the number of that item
if(!bigwindow)