diff options
author | Simon Edwardsson <simon@crossnet.se> | 2004-10-03 14:55:10 +0000 |
---|---|---|
committer | Simon Edwardsson <simon@crossnet.se> | 2004-10-03 14:55:10 +0000 |
commit | 2401b8b64f4c7ac574545b4db2dff1f4504a37fb (patch) | |
tree | ab4d91848ae38b9ab7a6b70fab48c1c68def5e67 /src/game.cpp | |
parent | 9c4d57c8a76f8494d702f733998aaa70eaab0e5e (diff) | |
download | mana-2401b8b64f4c7ac574545b4db2dff1f4504a37fb.tar.gz mana-2401b8b64f4c7ac574545b4db2dff1f4504a37fb.tar.bz2 mana-2401b8b64f4c7ac574545b4db2dff1f4504a37fb.tar.xz mana-2401b8b64f4c7ac574545b4db2dff1f4504a37fb.zip |
Now possible to use items (again)
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 3dbd599f..9c343f49 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -705,7 +705,11 @@ void do_parse() { // Remove item to inventory after you sold it case 0x00af: printf("sell %i\n",-RFIFOW(4)); - inventory.change_quantity(RFIFOW(2),-RFIFOW(4)); + inventory.increase_quantity(RFIFOW(2),-RFIFOW(4)); + break; + //use a item + case 0x01c8: + inventory.change_quantity(RFIFOW(2),RFIFOW(10)); break; case 0x0119: sprintf(pkt_nfo, "%i %i %i %i", RFIFOL(2), RFIFOW(6), RFIFOW(8), RFIFOW(10)); @@ -713,7 +717,7 @@ void do_parse() { break; // Manage non implemented packets default: - // use when debug packets :) printf("%x\n",id); + //printf("%x\n",id); //alert(pkt_nfo,"","","","",0,0); break; } |