From d38a85fda9f80c7fc23839b59bf96131ad592bbf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 10 Apr 2017 20:07:34 +0300 Subject: Fix packet version for evol servers. If server return 20150000 downgrade to 20141022. --- src/net/eathena/loginrecv.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp index c31692b4f..e594dd331 100644 --- a/src/net/eathena/loginrecv.cpp +++ b/src/net/eathena/loginrecv.cpp @@ -157,10 +157,16 @@ void LoginRecv::processServerVersion(Net::MessageIn &msg) { packetVersion = msg.readInt32("packet version"); logger->log("Hercules packet version: %d", packetVersion); + if (packetVersion == 20150000) + { + packetVersion = 20141022; + logger->log("autofix Hercules packet version to: %d", + packetVersion); + } } else { - packetVersion = 20150000; + packetVersion = 20141022; logger->log("Possible hercules packet version: %d", packetVersion); } } -- cgit v1.2.3-70-g09d2