From 18ff3c4430f6dfad38cf2da7c417315eba53a0fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Sep 2014 01:30:49 +0300 Subject: eathena: fix packet handling SMSG_MAP_LOGIN_SUCCESS 0x02eb. --- src/net/eathena/gamehandler.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index 0da88d8b4..b26fa6159 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -180,11 +180,15 @@ void GameHandler::processMapLogin(Net::MessageIn &msg) const { unsigned char direction; uint16_t x, y; - msg.readInt32(); // server tick + msg.readInt32("start time"); msg.readCoordinates(x, y, direction); - msg.skip(2); // 0x0505 - logger->log("Protocol: Player start position: (%d, %d)," - " Direction: %d", x, y, direction); + msg.readInt8("x size"); + msg.readInt8("y size"); + logger->log("Protocol: Player start position: " + "(%d, %d), Direction: %d", + x, y, direction, + "player position and direction"); + msg.readInt16("font"); mLastHost &= 0xffffff; -- cgit v1.2.3-70-g09d2