summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 22:22:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 22:27:01 +0300
commit1560889f9ee36d2a530321c4866e6b12ad0c7d99 (patch)
tree2541b43b2d5dbc869f1c1d32eab075d5bfe8d7c3 /src/map/clif.c
parent00db1dd28778180603098b56cbf0fa12b58df4bb (diff)
downloadhercules-1560889f9ee36d2a530321c4866e6b12ad0c7d99.tar.gz
hercules-1560889f9ee36d2a530321c4866e6b12ad0c7d99.tar.bz2
hercules-1560889f9ee36d2a530321c4866e6b12ad0c7d99.tar.xz
hercules-1560889f9ee36d2a530321c4866e6b12ad0c7d99.zip
Fix some wrong packet versions in rodex code.
Also replace some numbers to constants.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 4 insertions, 4 deletions
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;