summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-10-21 17:48:13 +0200
committerGitHub <noreply@github.com>2017-10-21 17:48:13 +0200
commitd1691ef81112667c2cfb3ae74a074a6debd4af53 (patch)
treec8c1126b5407fcfe8fe43b1db14e3970c656eda8 /src/map/intif.c
parente5d9b3768241a7e91bf8dd9bf8b776d4cee310d7 (diff)
parentec9f4b20aca50905d635db6d1e5398918a6dba5d (diff)
downloadhercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.tar.gz
hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.tar.bz2
hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.tar.xz
hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.zip
Merge pull request #1859 from 4144/newpackets
Add shuffle packets for latest clients, fix rodex in 2017 clients, fix exp packets.
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 1458fc710..60edc8d8b 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -2433,7 +2433,9 @@ int intif_rodex_requestinbox(int char_id, int account_id, int8 flag, int8 openty
void intif_parse_RequestRodexOpenInbox(int fd)
{
struct map_session_data *sd;
+#if PACKETVER < 20170419
int8 opentype = RFIFOB(fd, 8);
+#endif
int8 flag = RFIFOB(fd, 9);
int8 is_end = RFIFOB(fd, 10);
int count = RFIFOL(fd, 11);
@@ -2461,10 +2463,14 @@ void intif_parse_RequestRodexOpenInbox(int fd)
}
if (is_end == true) {
+#if PACKETVER >= 20170419
+ clif->rodex_send_mails_all(sd->fd, sd);
+#else
if (flag == 0)
clif->rodex_send_maillist(sd->fd, sd, opentype, VECTOR_LENGTH(sd->rodex.messages) - 1);
else
clif->rodex_send_refresh(sd->fd, sd, opentype, count);
+#endif
}
}