diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-05 02:08:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 78edce93375df12e878b69af829f37a84c5c86d5 (patch) | |
tree | 551acfaf3568a14ecaba0233a069569e958304c6 /src/net/eathena/playerhandler.cpp | |
parent | 2a0b524403f62e0217cf52e88a0c7e4e62f88df9 (diff) | |
download | mv-78edce93375df12e878b69af829f37a84c5c86d5.tar.gz mv-78edce93375df12e878b69af829f37a84c5c86d5.tar.bz2 mv-78edce93375df12e878b69af829f37a84c5c86d5.tar.xz mv-78edce93375df12e878b69af829f37a84c5c86d5.zip |
eathena: fix reading all fields in SMSG_WALK_RESPONSE 0x0087.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index c6636fded..a11558a86 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -349,8 +349,9 @@ void PlayerHandler::processWalkResponse(Net::MessageIn &msg) * otherwise. */ uint16_t srcX, srcY, dstX, dstY; - msg.readInt32(); // tick - msg.readCoordinatePair(srcX, srcY, dstX, dstY); + msg.readInt32("tick"); + msg.readCoordinatePair(srcX, srcY, dstX, dstY, "move path"); + msg.readUInt8("(sx<<4) | (sy&0x0f)"); if (localPlayer) localPlayer->setRealPos(dstX, dstY); BLOCK_END("PlayerHandler::processWalkResponse") |