summaryrefslogtreecommitdiff
path: root/src/net/eathena
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/net/eathena
parent0d1a57e8785a83a68e18cbdb32a064f4e252313c (diff)
downloadmanaplus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.tar.gz
manaplus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.tar.bz2
manaplus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.tar.xz
manaplus-d38a85fda9f80c7fc23839b59bf96131ad592bbf.zip
Fix packet version for evol servers.
If server return 20150000 downgrade to 20141022.
Diffstat (limited to 'src/net/eathena')
-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);
}
}