diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
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"); |