summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-26 02:49:38 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:24:25 +0300
commit52d19df34575f43de69db33ba64b9b4ffe7f72c2 (patch)
treeea5145abf914c9671595528fdc5dfc3ee9e6f860 /src/map/clif.c
parentde778589658156245d87f6a73da6f81c933df286 (diff)
downloadhercules-52d19df34575f43de69db33ba64b9b4ffe7f72c2.tar.gz
hercules-52d19df34575f43de69db33ba64b9b4ffe7f72c2.tar.bz2
hercules-52d19df34575f43de69db33ba64b9b4ffe7f72c2.tar.xz
hercules-52d19df34575f43de69db33ba64b9b4ffe7f72c2.zip
Convert packeet ZC_ACK_MERGE_ITEM into structure
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3e8a757fd..f16295b5a 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -20634,12 +20634,13 @@ static int clif_comparemergeitem(const void *a, const void *b)
static void clif_mergeitems(int fd, struct map_session_data *sd, int index, int amount, enum mergeitem_reason reason)
{
#if PACKETVER_MAIN_NUM >= 20120314 || PACKETVER_RE_NUM >= 20120221 || defined(PACKETVER_ZERO)
- WFIFOHEAD(fd, 7);
- WFIFOW(fd, 0) = 0x96f;
- WFIFOW(fd, 2) = index + 2;
- WFIFOW(fd, 4) = amount;
- WFIFOB(fd, 6) = reason;
- WFIFOSET(fd, 7);
+ WFIFOHEAD(fd, sizeof(struct PACKET_ZC_ACK_MERGE_ITEM));
+ struct PACKET_ZC_ACK_MERGE_ITEM *p = WFIFOP(fd, 0);
+ p->packetType = HEADER_ZC_ACK_MERGE_ITEM;
+ p->index = index + 2;
+ p->amount = amount;
+ p->reason = reason;
+ WFIFOSET(fd, sizeof(struct PACKET_ZC_ACK_MERGE_ITEM));
#endif
}