From d0989dacb3cf86ba03a914b8c508a63e42c64790 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 11:24:51 +0300 Subject: tmwa: read whole packet SMSG_WALK_RESPONSE. --- src/net/tmwa/playerhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa') 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") -- cgit v1.2.3-70-g09d2