diff options
Diffstat (limited to 'src/net/eathena/updateprotocol.cpp')
-rw-r--r-- | src/net/eathena/updateprotocol.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/updateprotocol.cpp b/src/net/eathena/updateprotocol.cpp index 15050d099..21f6c001a 100644 --- a/src/net/eathena/updateprotocol.cpp +++ b/src/net/eathena/updateprotocol.cpp @@ -36,12 +36,14 @@ extern int evolPacketOffset; extern bool packets_main; extern bool packets_re; extern bool packets_zero; +extern int itemIdLen; namespace EAthena { void updateProtocol() { + itemIdLen = 2; logger->log("packet version: %d", packetVersion); if (packets_main == true) { @@ -64,6 +66,10 @@ void updateProtocol() packetVersionMain = 0; packetVersionRe = 0; } + if (packetVersionRe >= 20180704) + { + itemIdLen = 4; + } #define PACKETS_UPDATE #include "net/protocoloutupdate.h" #include "net/eathena/packetsout.inc" |