diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-30 23:40:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:53 +0300 |
commit | aabe4a58a300b9b9c8599b91b232542589fe0a01 (patch) | |
tree | 8b45fe56fb609ccc3f70afe9cac8701503470ef4 /src/net/eathena/loginhandler.cpp | |
parent | 33ef5d96384dd2c850ebb02a7c20b8bc878af3a9 (diff) | |
download | plus-aabe4a58a300b9b9c8599b91b232542589fe0a01.tar.gz plus-aabe4a58a300b9b9c8599b91b232542589fe0a01.tar.bz2 plus-aabe4a58a300b9b9c8599b91b232542589fe0a01.tar.xz plus-aabe4a58a300b9b9c8599b91b232542589fe0a01.zip |
Remove version request for eathena servers.
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r-- | src/net/eathena/loginhandler.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 99017dfdc..a1843b5bf 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -101,7 +101,8 @@ void LoginHandler::connect() return; mNetwork->connect(mServer); - MessageOut outMsg(CMSG_SERVER_VERSION_REQUEST); + if (client->getState() != STATE_LOGIN) + client->setState(STATE_LOGIN); } bool LoginHandler::isConnected() const @@ -109,7 +110,7 @@ bool LoginHandler::isConnected() const if (!mNetwork) return false; - return mVersionResponse && mNetwork->isConnected(); + return mNetwork->isConnected(); } void LoginHandler::disconnect() @@ -171,9 +172,6 @@ void LoginHandler::processServerVersion(Net::MessageIn &msg) serverVersion = 0; if (client->getState() != STATE_LOGIN) client->setState(STATE_LOGIN); - - // Leave this last - mVersionResponse = true; } void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const |