summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-11 00:34:53 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-11 22:24:20 +0100
commitf53a1cf0ff67b5bc11de5e28bb2d76070b019e0f (patch)
treefb5ae792612beaef91c4f5f17c3b9ee7e3beb64f /src
parent94692dd2abd30d36175fb3cb5225e03787713820 (diff)
downloadmana-f53a1cf0ff67b5bc11de5e28bb2d76070b019e0f.tar.gz
mana-f53a1cf0ff67b5bc11de5e28bb2d76070b019e0f.tar.bz2
mana-f53a1cf0ff67b5bc11de5e28bb2d76070b019e0f.tar.xz
mana-f53a1cf0ff67b5bc11de5e28bb2d76070b019e0f.zip
Remove the protocol version magic number.
This follows the changes made on the server. Reviewed-by: Jaxad.
Diffstat (limited to 'src')
-rw-r--r--src/net/manaserv/loginhandler.cpp2
-rw-r--r--src/net/manaserv/manaserv_protocol.h2
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:
*