diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-10 23:29:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-21 06:11:23 +0300 |
commit | 964268da6cbf76dc9f2fb53d874061b5634f3759 (patch) | |
tree | e3e3a3b1d62d6e1e81f3c1bbfad588a951774e8f /src/map/packets_struct.h | |
parent | 2ea08e0e58004667f51e56a5295767ac6d1be49b (diff) | |
download | hercules-964268da6cbf76dc9f2fb53d874061b5634f3759.tar.gz hercules-964268da6cbf76dc9f2fb53d874061b5634f3759.tar.bz2 hercules-964268da6cbf76dc9f2fb53d874061b5634f3759.tar.xz hercules-964268da6cbf76dc9f2fb53d874061b5634f3759.zip |
Fix map server auth packet for clients >= 20160330.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 4d474ac93..71a6bfd6e 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -141,8 +141,11 @@ enum packet_headers { authokType = 0x73, #elif PACKETVER < 20141022 authokType = 0x2eb, -#else +// Some clients smaller than 20160330 cant be tested [4144] +#elif PACKETVER < 20160330 authokType = 0xa18, +#else + authokType = 0x2eb, #endif script_clearType = 0x8d6, package_item_announceType = 0x7fd, @@ -400,7 +403,8 @@ struct packet_authok { #if PACKETVER >= 20080102 int16 font; #endif -#if PACKETVER >= 20141022 +// Some clients smaller than 20160330 cant be tested [4144] +#if PACKETVER >= 20141022 && PACKETVER < 20160330 uint8 sex; #endif } __attribute__((packed)); |