summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-24 01:56:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-24 01:56:45 +0300
commitc8197ed59f213e9831b8170e3fa521041e03cb9a (patch)
tree2f3e507b57d68621fab50e4e10125244fadb0fd3
parent39b049572ef0a734d3a6bd2a3def04c100f606df (diff)
downloadplus-c8197ed59f213e9831b8170e3fa521041e03cb9a.tar.gz
plus-c8197ed59f213e9831b8170e3fa521041e03cb9a.tar.bz2
plus-c8197ed59f213e9831b8170e3fa521041e03cb9a.tar.xz
plus-c8197ed59f213e9831b8170e3fa521041e03cb9a.zip
Remove packet constant from eathena net code.
-rw-r--r--src/net/eathena/loginhandler.cpp2
-rw-r--r--src/net/eathena/protocol.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp
index 5ebec5106..8ca8bd1b7 100644
--- a/src/net/eathena/loginhandler.cpp
+++ b/src/net/eathena/loginhandler.cpp
@@ -134,7 +134,7 @@ void LoginHandler::sendLoginRegister(const std::string &restrict username,
const std::string &restrict email
A_UNUSED) const
{
- MessageOut outMsg(0x0064);
+ MessageOut outMsg(CMSG_LOGIN_REGISTER);
outMsg.writeInt32(0); // client version
outMsg.writeString(username, 24);
outMsg.writeStringNoLog(password, 24);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index df0527b4c..c1a3b016b 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -28,6 +28,8 @@
*********************************/
#define SMSG_SERVER_VERSION_RESPONSE 0x7531
+#define CMSG_LOGIN_REGISTER 0x0064
+
#define SMSG_SERVER_PING 0x007f /**< Contains server tick */
#define SMSG_CONNECTION_PROBLEM 0x0081