diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 20:05:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 20:05:26 +0300 |
commit | 45c13626f8c59f6d48d411545cb17aee117ef076 (patch) | |
tree | a947215e6204b9f7b8c0eefbeb41e3761c3a3697 /src/net/tmwa/loginhandler.cpp | |
parent | 5551e409419180097dd37b9a6919495a6b1be95c (diff) | |
download | manaplus-45c13626f8c59f6d48d411545cb17aee117ef076.tar.gz manaplus-45c13626f8c59f6d48d411545cb17aee117ef076.tar.bz2 manaplus-45c13626f8c59f6d48d411545cb17aee117ef076.tar.xz manaplus-45c13626f8c59f6d48d411545cb17aee117ef076.zip |
Remove outdated protocol version checks from tmwa net code.
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index e5022b2ec..ad6ad5dce 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -93,17 +93,8 @@ void LoginHandler::sendLoginRegister(const std::string &restrict username, A_UNUSED) const { createOutPacket(CMSG_LOGIN_REGISTER); - if (serverVersion > 0) - { - outMsg.writeInt32(CLIENT_PROTOCOL_VERSION, - "client protocol version"); - } - else - { - outMsg.writeInt32(CLIENT_TMW_PROTOCOL_VERSION, - "client protocol version"); - } - + outMsg.writeInt32(CLIENT_PROTOCOL_VERSION, + "client protocol version"); outMsg.writeString(username, 24, "login"); outMsg.writeStringNoLog(password, 24, "password"); |