diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-09-26 19:53:00 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-09-26 19:53:00 +0000 |
commit | df774e86e87da20bc4910bee873df3843665b5e8 (patch) | |
tree | beeefef61d7a28144e7d9b03ea7bd40bb0bd7cf8 | |
parent | 0181b595ce4dfdb18aa5bfebf1541f351e0ff92f (diff) | |
download | mana-client-df774e86e87da20bc4910bee873df3843665b5e8.tar.gz mana-client-df774e86e87da20bc4910bee873df3843665b5e8.tar.bz2 mana-client-df774e86e87da20bc4910bee873df3843665b5e8.tar.xz mana-client-df774e86e87da20bc4910bee873df3843665b5e8.zip |
*** empty log message ***
-rw-r--r-- | src/gui/inventory.cpp | 8 |
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; +} |