From 54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Oct 2014 12:13:48 +0300 Subject: tmwa: fix reading whole packets SMSG_PLAYER_GUILD_PARTY_INFO and SMSG_BEING_CHANGE_DIRECTION. --- src/net/tmwa/beinghandler.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa/beinghandler.cpp') diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index fb8a5d3fe..c85f4d78d 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -1494,7 +1494,9 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) if (!dstBeing) { - BLOCK_END("BeingHandler::processBeingChangeDirection") + msg.readInt16("unused"); + msg.readUInt8("direction"); + BLOCK_END("BeingHandler::processBeingChangeDirection"); return; } @@ -1639,11 +1641,19 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) } else { - msg.skip(48); + msg.readString(24, "guild name"); + msg.readString(24, "guild pos"); } dstBeing->addToCache(); msg.readString(24, "?"); } + else + { + msg.readString(24, "party name"); + msg.readString(24, "guild name"); + msg.readString(24, "guild pos"); + msg.readString(24, "?"); + } BLOCK_END("BeingHandler::processPlayerGuilPartyInfo") } -- cgit v1.2.3-70-g09d2