diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-01 01:30:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | 18ff3c4430f6dfad38cf2da7c417315eba53a0fc (patch) | |
tree | 292bd7298c8a41557dcb9f06c7f46e6b00fee61b /src/net | |
parent | ed5325ebc95fd9d954730a27c0e57be35bc5d3d0 (diff) | |
download | manaverse-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.tar.gz manaverse-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.tar.bz2 manaverse-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.tar.xz manaverse-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.zip |
eathena: fix packet handling SMSG_MAP_LOGIN_SUCCESS 0x02eb.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/gamehandler.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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; |