diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-01 00:16:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | cf302132a1a1b7a9a05710f51ac4cdf20afa3f6b (patch) | |
tree | 988e1d5188549807485d37cb4ad04f98998e9dbf /src | |
parent | 173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5 (diff) | |
download | manaverse-cf302132a1a1b7a9a05710f51ac4cdf20afa3f6b.tar.gz manaverse-cf302132a1a1b7a9a05710f51ac4cdf20afa3f6b.tar.bz2 manaverse-cf302132a1a1b7a9a05710f51ac4cdf20afa3f6b.tar.xz manaverse-cf302132a1a1b7a9a05710f51ac4cdf20afa3f6b.zip |
eathena: fix packet id CMSG_MAP_SERVER_CONNECT 0x022d.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/gamehandler.cpp | 11 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index c21b37611..54c64d995 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -126,12 +126,11 @@ void GameHandler::connect() // Send login infos MessageOut outMsg(CMSG_MAP_SERVER_CONNECT); - outMsg.writeInt32(token.account_ID); - outMsg.writeInt32(mCharID); - outMsg.writeInt32(token.session_ID1); - outMsg.writeInt32(token.session_ID2); - outMsg.writeInt8(Being::genderToInt(token.sex)); - + outMsg.writeInt32(token.account_ID, "account id"); + outMsg.writeInt32(mCharID, "char id"); + outMsg.writeInt32(token.session_ID1, "session key1"); + outMsg.writeInt32(token.session_ID2, "session key2"); + outMsg.writeInt8(Being::genderToInt(token.sex), "sex"); /* if (localPlayer) { diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 31653a65f..cb61d6216 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -85,7 +85,7 @@ int16_t packet_lengths[] = // #0x0200 26, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 19, 10, 0, 0, 0, 2, -1, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - -1, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -1, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0240 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 60a10dbac..8f21b5738 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -199,7 +199,7 @@ #define CMSG_CHAR_DELETE 0x0068 #define CMSG_CHAR_CREATE_PIN 0x08ba -#define CMSG_MAP_SERVER_CONNECT 0x0072 +#define CMSG_MAP_SERVER_CONNECT 0x022d #define CMSG_CLIENT_PING 0x007e /**< Send to server with tick */ #define CMSG_MAP_LOADED 0x007d #define CMSG_CLIENT_QUIT 0x018A |