summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-16 23:45:44 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-16 23:45:44 +0300
commit7c6d3721e2a0cbf31213c344ac48765d34ad39a5 (patch)
treef62b71116fb66e7045738c74de5bda361a2bb783 /src
parent5799b36c11da8a52713e33508edbe07ef9888a65 (diff)
downloadmv-7c6d3721e2a0cbf31213c344ac48765d34ad39a5.tar.gz
mv-7c6d3721e2a0cbf31213c344ac48765d34ad39a5.tar.bz2
mv-7c6d3721e2a0cbf31213c344ac48765d34ad39a5.tar.xz
mv-7c6d3721e2a0cbf31213c344ac48765d34ad39a5.zip
Add packet SMSG_PARTY_INFO 0x0ae5.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packetsin.inc1
-rw-r--r--src/net/eathena/partyrecv.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 623c0aace..e9a11cd56 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -997,6 +997,7 @@ if (packets_zero == true)
if (packetVersion >= 20171207)
{
packet(SMSG_PARTY_MEMBER_INFO, 0x0ae4, 89, &PartyRecv::processPartyMemberInfo, 20171207);
+ packet(SMSG_PARTY_INFO, 0x0ae5, -1, &PartyRecv::processPartyInfo, 20171207);
}
// 0
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp
index 185295861..336c7cfd0 100644
--- a/src/net/eathena/partyrecv.cpp
+++ b/src/net/eathena/partyrecv.cpp
@@ -212,6 +212,8 @@ void PartyRecv::processPartyInfo(Net::MessageIn &msg)
for (int i = 0; i < count; i++)
{
const BeingId id = msg.readBeingId("account id");
+ if (msg.getVersion() >= 20171207)
+ msg.readBeingId("char id");
std::string nick = msg.readString(24, "nick");
std::string map = msg.readString(16, "map name");
const bool leader = msg.readUInt8("leader") == 0U;