diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/manaserv/loginhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/manaserv/manaserv_protocol.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp index 7332e933..2f53b643 100644 --- a/src/net/manaserv/loginhandler.cpp +++ b/src/net/manaserv/loginhandler.cpp @@ -388,7 +388,7 @@ void LoginHandler::loginAccount(LoginData *loginData) MessageOut msg(PAMSG_LOGIN); - msg.writeInt32(0); // client version + msg.writeInt32(PROTOCOL_VERSION); // client version msg.writeString(loginData->username); msg.writeString(sha256(loginData->username + loginData->password)); diff --git a/src/net/manaserv/manaserv_protocol.h b/src/net/manaserv/manaserv_protocol.h index 577320b6..e4beb155 100644 --- a/src/net/manaserv/manaserv_protocol.h +++ b/src/net/manaserv/manaserv_protocol.h @@ -24,6 +24,8 @@ namespace ManaServ { +enum { PROTOCOL_VERSION = 0 }; + /** * Enumerated type for communicated messages: * |