summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-01 01:30:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commit18ff3c4430f6dfad38cf2da7c417315eba53a0fc (patch)
tree292bd7298c8a41557dcb9f06c7f46e6b00fee61b /src/net/eathena
parented5325ebc95fd9d954730a27c0e57be35bc5d3d0 (diff)
downloadplus-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.tar.gz
plus-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.tar.bz2
plus-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.tar.xz
plus-18ff3c4430f6dfad38cf2da7c417315eba53a0fc.zip
eathena: fix packet handling SMSG_MAP_LOGIN_SUCCESS 0x02eb.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/gamehandler.cpp12
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;