summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-16 06:31:59 +0300
committerAndrei Karas <akaras@inbox.ru>2019-02-05 01:16:49 +0300
commitcedd00b65123d2fcd32ac79dc0f6a077f4a279c2 (patch)
tree6061dc7fe2897c23d881d72a58adca117f36b2d0 /src/map/clif.c
parent1e28acbaab22d5a92e96a6a19a6e59a92b3f7a46 (diff)
downloadhercules-cedd00b65123d2fcd32ac79dc0f6a077f4a279c2.tar.gz
hercules-cedd00b65123d2fcd32ac79dc0f6a077f4a279c2.tar.bz2
hercules-cedd00b65123d2fcd32ac79dc0f6a077f4a279c2.tar.xz
hercules-cedd00b65123d2fcd32ac79dc0f6a077f4a279c2.zip
Add support for barter shops for main and re clients with version 20190116
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index eba2ddce3..d41570640 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -22227,7 +22227,7 @@ static bool clif_enchant_equipment(struct map_session_data *sd, enum equip_pos p
static void clif_npc_barter_open(struct map_session_data *sd, struct npc_data *nd)
{
-#if PACKETVER_ZERO_NUM >= 20181226
+#if PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
nullpo_retv(sd);
nullpo_retv(nd);
struct npc_item_list *shop = nd->u.scr.shop->item;
@@ -22263,7 +22263,7 @@ static void clif_npc_barter_open(struct map_session_data *sd, struct npc_data *n
static void clif_parse_NPCBarterPurchase(int fd, struct map_session_data *sd) __attribute__((nonnull (2)));
static void clif_parse_NPCBarterPurchase(int fd, struct map_session_data *sd)
{
-#if PACKETVER_ZERO_NUM >= 20181226
+#if PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
const struct PACKET_CZ_NPC_BARTER_PURCHASE *p = RP2PTR(fd);
int count = (p->packetLength - sizeof(struct PACKET_CZ_NPC_BARTER_PURCHASE)) / sizeof p->list[0];
struct barteritemlist item_list;