diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-08 02:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-08 02:04:33 +0300 |
commit | 96d877fa2b9bbec546b83cbbc6d16664116e1fb9 (patch) | |
tree | 5b75c3f10217c8515a8e2809892f7526e6efd66f /src/net/tmwa/loginhandler.cpp | |
parent | 29187a2582c04e3ede63f9c58f09dbbe34834a30 (diff) | |
download | plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.gz plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.bz2 plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.xz plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.zip |
Add checks and fix code style.
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index 029c379a0..cac8df623 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -146,12 +146,10 @@ ServerInfo *LoginHandler::getCharServer() void LoginHandler::processServerVersion(Net::MessageIn &msg) { - // TODO: verify these! - char b1 = msg.readInt8(); // -1 - char b2 = msg.readInt8(); // T - char b3 = msg.readInt8(); // M - char b4 = msg.readInt8(); // W + char b2 = msg.readInt8(); // E + char b3 = msg.readInt8(); // V + char b4 = msg.readInt8(); // L if (b1 == -1 && b2 == 'E' && b3 == 'V' && b4 == 'L') { unsigned int options = msg.readInt8(); |