diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 11:24:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 11:24:51 +0300 |
commit | d0989dacb3cf86ba03a914b8c508a63e42c64790 (patch) | |
tree | 0b9b5a5fcf526384f70d2584b0f027d1bdec4775 /src/net/tmwa/playerhandler.cpp | |
parent | b6fa052f0dd125f6d3eb3e3f81aec3bb75137032 (diff) | |
download | manaplus-d0989dacb3cf86ba03a914b8c508a63e42c64790.tar.gz manaplus-d0989dacb3cf86ba03a914b8c508a63e42c64790.tar.bz2 manaplus-d0989dacb3cf86ba03a914b8c508a63e42c64790.tar.xz manaplus-d0989dacb3cf86ba03a914b8c508a63e42c64790.zip |
tmwa: read whole packet SMSG_WALK_RESPONSE.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 399f4d13c..fa3f9a874 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -437,8 +437,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("unused"); if (localPlayer) localPlayer->setRealPos(dstX, dstY); BLOCK_END("PlayerHandler::processWalkResponse") |