summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-06 23:32:32 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-06 23:32:32 +0300
commit38e7aa7634b87bb3906200a92d09c117d7fd2877 (patch)
tree067be8d6c73e5aa9e3b7ac83c9e8eea849bf5dd7
parentfd7123530c9f641a43f1c76345da24211e8f7bb7 (diff)
downloadhercules-38e7aa7634b87bb3906200a92d09c117d7fd2877.tar.gz
hercules-38e7aa7634b87bb3906200a92d09c117d7fd2877.tar.bz2
hercules-38e7aa7634b87bb3906200a92d09c117d7fd2877.tar.xz
hercules-38e7aa7634b87bb3906200a92d09c117d7fd2877.zip
Add support for packet 0xaf7 in zero clients.
-rw-r--r--src/char/char.c2
-rw-r--r--src/map/clif.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 93fb1be75..f1afb8aae 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3328,7 +3328,7 @@ void char_char_name_ack(int fd, int char_id)
WFIFOHEAD(fd,30);
WFIFOW(fd,0) = 0x2b09;
WFIFOL(fd,2) = char_id;
-#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221
+#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221 || PACKETVER_ZERO_NUM >= 20180328
if (chr->loadName(char_id, WFIFOP(fd,6)) == 0)
WFIFOL(fd, 6) = 0;
#else
diff --git a/src/map/clif.c b/src/map/clif.c
index 942600a26..836fc2fc2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6094,7 +6094,7 @@ void clif_wis_end(int fd, int flag) {
void clif_solved_charname(int fd, int charid, const char* name)
{
nullpo_retv(name);
-#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221
+#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221 || PACKETVER_ZERO_NUM >= 20180328
WFIFOHEAD(fd, packet_len(0x0af7));
WFIFOW(fd, 0) = 0xaf7;
if (*name == 0) {