summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 11:24:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 11:24:51 +0300
commitd0989dacb3cf86ba03a914b8c508a63e42c64790 (patch)
tree0b9b5a5fcf526384f70d2584b0f027d1bdec4775 /src
parentb6fa052f0dd125f6d3eb3e3f81aec3bb75137032 (diff)
downloadmanaverse-d0989dacb3cf86ba03a914b8c508a63e42c64790.tar.gz
manaverse-d0989dacb3cf86ba03a914b8c508a63e42c64790.tar.bz2
manaverse-d0989dacb3cf86ba03a914b8c508a63e42c64790.tar.xz
manaverse-d0989dacb3cf86ba03a914b8c508a63e42c64790.zip
tmwa: read whole packet SMSG_WALK_RESPONSE.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/playerhandler.cpp5
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")