From 1560889f9ee36d2a530321c4866e6b12ad0c7d99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 22:22:52 +0300 Subject: Fix some wrong packet versions in rodex code. Also replace some numbers to constants. --- src/map/clif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 90813bd40..2644194c7 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -19266,7 +19266,7 @@ void clif_parse_rodex_add_item(int fd, struct map_session_data *sd) void clif_rodex_add_item_result(struct map_session_data *sd, int16 idx, int16 amount, int8 result) { -#if PACKETVER >= 20140416 +#if PACKETVER >= 20141119 struct PACKET_ZC_ADD_ITEM_TO_MAIL *packet; int fd, j; @@ -19428,7 +19428,7 @@ void clif_rodex_send_maillist(int fd, struct map_session_data *sd, int8 open_typ nullpo_retv(sd); - WFIFOHEAD(fd, sizeof(*packet) + (sizeof(*inner) + RODEX_TITLE_LENGTH) * 7); + WFIFOHEAD(fd, sizeof(*packet) + (sizeof(*inner) + RODEX_TITLE_LENGTH) * RODEX_MAIL_PER_PAGE); packet = WFIFOP(fd, 0); packet->PacketType = ((page_start == (VECTOR_LENGTH(sd->rodex.messages) - 1)) ? rodexmailList : rodexnextpage); packet->opentype = open_type; @@ -19479,7 +19479,7 @@ void clif_rodex_send_refresh(int fd, struct map_session_data *sd, int8 open_type nullpo_retv(sd); - WFIFOHEAD(fd, sizeof(*packet) + (sizeof(*inner) + RODEX_TITLE_LENGTH) * 7); + WFIFOHEAD(fd, sizeof(*packet) + (sizeof(*inner) + RODEX_TITLE_LENGTH) * RODEX_MAIL_PER_PAGE); packet = WFIFOP(fd, 0); packet->PacketType = rodexmailList; packet->opentype = open_type; @@ -19540,7 +19540,7 @@ void clif_parse_rodex_read_mail(int fd, struct map_session_data *sd) void clif_rodex_read_mail(struct map_session_data *sd, int8 opentype, struct rodex_message *msg) { -#if PACKETVER >= 20131223 +#if PACKETVER >= 20140115 struct PACKET_ZC_READ_MAIL *sPacket; struct mail_item *item; int fd, i, body_len, size; -- cgit v1.2.3-60-g2f50