diff options
author | Haru <haru@dotalux.com> | 2016-02-22 03:53:36 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:02:21 +0100 |
commit | 3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a (patch) | |
tree | 15db076f3c6027de5a04055e02f2979b18e045d0 /src/map/clif.h | |
parent | 23f1ef310719081c79aebf3f8921240773f5a507 (diff) | |
download | hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.tar.gz hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.tar.bz2 hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.tar.xz hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.zip |
Edited npc->market_buylist() to use the new struct itemlist
- The npc-side code no longer depends on the client data layout.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index 3b7e2e99f..ac0191210 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -40,6 +40,7 @@ struct guild; struct homun_data; struct item; struct item_data; +struct itemlist; // map/itemdb.h struct map_session_data; struct mercenary_data; struct mob_data; @@ -1080,7 +1081,7 @@ struct clif_interface { int (*delay_damage_sub) (int tid, int64 tick, int id, intptr_t data); /* NPC Market */ void (*npc_market_open) (struct map_session_data *sd, struct npc_data *nd); - void (*npc_market_purchase_ack) (struct map_session_data *sd, const struct packet_npc_market_purchase *req, unsigned char response); + void (*npc_market_purchase_ack) (struct map_session_data *sd, const struct itemlist *item_list, unsigned char response); /* */ bool (*parse_roulette_db) (void); void (*roulette_generate_ack) (struct map_session_data *sd, unsigned char result, short stage, short prizeIdx, short bonusItemID); |