summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 12:13:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 19:46:19 +0300
commit54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef (patch)
tree8434a5521d55fb59d32bf3fac472b9d8f19dfe80 /src/net
parenta6094d662636e67b1515ad21e186041d8cf4cf26 (diff)
downloadplus-54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef.tar.gz
plus-54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef.tar.bz2
plus-54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef.tar.xz
plus-54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef.zip
tmwa: fix reading whole packets SMSG_PLAYER_GUILD_PARTY_INFO and SMSG_BEING_CHANGE_DIRECTION.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwa/beinghandler.cpp14
1 files changed, 12 insertions, 2 deletions
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")
}