From 959581e5d9da2c0ff79a94c1773343b0c1750ea6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 May 2015 02:30:09 +0300 Subject: Send net code version also to login server in tmwa net code. --- src/net/tmwa/loginhandler.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index 96a33d55a..8eaba8805 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -144,7 +144,17 @@ void LoginHandler::sendLoginRegister(const std::string &restrict username, if (email.empty()) { createOutPacket(CMSG_LOGIN_REGISTER); - outMsg.writeInt32(0, "client version"); + if (serverVersion > 0) + { + outMsg.writeInt32(CLIENT_PROTOCOL_VERSION, + "client protocol version"); + } + else + { + outMsg.writeInt32(CLIENT_TMW_PROTOCOL_VERSION, + "client protocol version"); + } + outMsg.writeString(username, 24, "login"); outMsg.writeStringNoLog(password, 24, "password"); -- cgit v1.2.3-60-g2f50