diff options
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index c2e6d462c..2f006c639 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -33,6 +33,7 @@ #include "debug.h" extern Net::LoginHandler *loginHandler; +extern unsigned int tmwServerVersion; namespace TmwAthena { @@ -91,8 +92,17 @@ void LoginHandler::sendLoginRegister(const std::string &restrict username, A_UNUSED) const { createOutPacket(CMSG_LOGIN_REGISTER); - outMsg.writeInt32(CLIENT_PROTOCOL_VERSION, - "client protocol version"); + if (tmwServerVersion < 0x100408) + { + // hack to avoid bug in tmwa... + outMsg.writeInt32(5, + "client protocol version"); + } + else + { + outMsg.writeInt32(CLIENT_PROTOCOL_VERSION, + "client protocol version"); + } outMsg.writeString(username, 24, "login"); outMsg.writeStringNoLog(password, 24, "password"); |