From c8197ed59f213e9831b8170e3fa521041e03cb9a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Jun 2014 01:56:45 +0300 Subject: Remove packet constant from eathena net code. --- src/net/eathena/loginhandler.cpp | 2 +- src/net/eathena/protocol.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2