summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 02:08:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit78edce93375df12e878b69af829f37a84c5c86d5 (patch)
tree551acfaf3568a14ecaba0233a069569e958304c6 /src/net
parent2a0b524403f62e0217cf52e88a0c7e4e62f88df9 (diff)
downloadplus-78edce93375df12e878b69af829f37a84c5c86d5.tar.gz
plus-78edce93375df12e878b69af829f37a84c5c86d5.tar.bz2
plus-78edce93375df12e878b69af829f37a84c5c86d5.tar.xz
plus-78edce93375df12e878b69af829f37a84c5c86d5.zip
eathena: fix reading all fields in SMSG_WALK_RESPONSE 0x0087.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/playerhandler.cpp5
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")