summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/gamehandler.cpp11
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h2
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