summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-26 19:53:00 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-26 19:53:00 +0000
commitdf774e86e87da20bc4910bee873df3843665b5e8 (patch)
treebeeefef61d7a28144e7d9b03ea7bd40bb0bd7cf8 /src
parent0181b595ce4dfdb18aa5bfebf1541f351e0ff92f (diff)
downloadmana-df774e86e87da20bc4910bee873df3843665b5e8.tar.gz
mana-df774e86e87da20bc4910bee873df3843665b5e8.tar.bz2
mana-df774e86e87da20bc4910bee873df3843665b5e8.tar.xz
mana-df774e86e87da20bc4910bee873df3843665b5e8.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/gui/inventory.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp
index 8300a310..b19eba10 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -134,7 +134,7 @@ void TmwInventory::draw(BITMAP * buffer) {
}
if(items[itemX][itemY].flag) //draw the item
- masked_blit(itemset[items[itemX][itemY].itemIDNum].dat, buffer, 0, 0, (xpos+items[itemX][itemY].xpos), (ypos+items[itemX][itemY].ypos), 800, 600);
+ masked_blit((BITMAP *)itemset[items[itemX][itemY].itemIDNum].dat, buffer, 0, 0, (xpos+items[itemX][itemY].xpos), (ypos+items[itemX][itemY].ypos), 800, 600);
//the number of that item
if(!bigwindow)
@@ -171,7 +171,7 @@ void TmwInventory::draw(BITMAP * buffer) {
}
if(dragingItem) { //moving the item
- masked_blit(itemset[ghostID].dat, buffer, 0, 0, ghostX, ghostY, 800, 600);
+ masked_blit((BITMAP *)itemset[ghostID].dat, buffer, 0, 0, ghostX, ghostY, 800, 600);
ghostX = mouse_x;
ghostY = mouse_y;
}
@@ -288,4 +288,6 @@ int TmwInventory::useItem(int idnum)
WFIFOW(2) = net_w_value(idnum);
WFIFOSET(4);
while((out_size>0))flush();
-} \ No newline at end of file
+
+ return 0;
+}