diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-20 18:28:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-20 18:28:23 +0300 |
commit | e078b82b6b7fc6c19499287a7ebaafa8ce6a8fe8 (patch) | |
tree | 7470b0d370d23a2162867e50feb45481127910fd /src/net/tmwa/loginhandler.cpp | |
parent | 732974f50a87db565b138cd0027686ed4b82228b (diff) | |
download | manaplus-e078b82b6b7fc6c19499287a7ebaafa8ce6a8fe8.tar.gz manaplus-e078b82b6b7fc6c19499287a7ebaafa8ce6a8fe8.tar.bz2 manaplus-e078b82b6b7fc6c19499287a7ebaafa8ce6a8fe8.tar.xz manaplus-e078b82b6b7fc6c19499287a7ebaafa8ce6a8fe8.zip |
Remove evol server version check from tmwa.
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index 5331d8045..f69151d9d 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -176,17 +176,7 @@ void LoginHandler::processServerVersion(Net::MessageIn &msg) const uint8_t b2 = msg.readUInt8("b2"); // E const uint8_t b3 = msg.readUInt8("b3"); // V const uint8_t b4 = msg.readUInt8("b4"); // L - if (b1 == 255 && b2 == 'E' && b3 == 'V' && b4 == 'L') - { - const unsigned int options = msg.readUInt8("options"); - mRegistrationEnabled = options & FLAG_REGISTRATION; - msg.readInt16("unused"); - serverVersion = msg.readUInt8("server version"); - tmwServerVersion = 0; - if (serverVersion >= 5) - requestUpdateHosts(); - } - else if (b1 == 255) + if (b1 == 255) { // old TMWA const unsigned int options = msg.readInt32("options"); mRegistrationEnabled = options & FLAG_REGISTRATION; @@ -212,7 +202,7 @@ void LoginHandler::processServerVersion(Net::MessageIn &msg) else if (tmwServerVersion > 0) logger->log("Tmw server version: x%06x", tmwServerVersion); else - logger->log("Server witout version"); + logger->log("Server without version"); if (serverVersion < 5) { |