summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 20:05:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 20:05:26 +0300
commit45c13626f8c59f6d48d411545cb17aee117ef076 (patch)
treea947215e6204b9f7b8c0eefbeb41e3761c3a3697 /src/net/tmwa/charserverhandler.cpp
parent5551e409419180097dd37b9a6919495a6b1be95c (diff)
downloadplus-45c13626f8c59f6d48d411545cb17aee117ef076.tar.gz
plus-45c13626f8c59f6d48d411545cb17aee117ef076.tar.bz2
plus-45c13626f8c59f6d48d411545cb17aee117ef076.tar.xz
plus-45c13626f8c59f6d48d411545cb17aee117ef076.zip
Remove outdated protocol version checks from tmwa net code.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp11
1 files changed, 2 insertions, 9 deletions
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?)