From 45c13626f8c59f6d48d411545cb17aee117ef076 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Mar 2016 20:05:26 +0300 Subject: Remove outdated protocol version checks from tmwa net code. --- src/net/tmwa/charserverhandler.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/net/tmwa/charserverhandler.cpp') diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index c9db50260..9fc0478c2 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -126,15 +126,8 @@ void CharServerHandler::connect() const outMsg.writeInt32(token.session_ID2, "session id2"); // [Fate] The next word is unused by the old char server, so we squeeze in // mana client version information - if (serverVersion > 0) - { - outMsg.writeInt16(CLIENT_PROTOCOL_VERSION, "client protocol version"); - } - else - { - outMsg.writeInt16(CLIENT_TMW_PROTOCOL_VERSION, - "client protocol version"); - } + outMsg.writeInt16(CLIENT_PROTOCOL_VERSION, + "client protocol version"); outMsg.writeInt8(Being::genderToInt(token.sex), "gender"); // We get 4 useless bytes before the real answer comes in (what are these?) -- cgit v1.2.3-70-g09d2