summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-10 20:07:34 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-10 20:07:34 +0300
commitd38a85fda9f80c7fc23839b59bf96131ad592bbf (patch)
tree44af94d256c8787522e915301fca1fa8cb0eb61d /src
parent0d1a57e8785a83a68e18cbdb32a064f4e252313c (diff)
downloadplus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.tar.gz
plus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.tar.bz2
plus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.tar.xz
plus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.zip
Fix packet version for evol servers.
If server return 20150000 downgrade to 20141022.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/loginrecv.cpp8
1 files changed, 7 insertions, 1 deletions
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);
}
}