summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-28 00:37:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-28 01:59:05 +0300
commit4d94a44a3acf77653b4e4782009a49293b96c35d (patch)
tree3afea714b1941e9db8ab7a536b6b8875365dee97 /src/net/eathena/partyrecv.cpp
parente1be87443d6d7c463f1751678fe1c556d1ba9092 (diff)
downloadmanaverse-4d94a44a3acf77653b4e4782009a49293b96c35d.tar.gz
manaverse-4d94a44a3acf77653b4e4782009a49293b96c35d.tar.bz2
manaverse-4d94a44a3acf77653b4e4782009a49293b96c35d.tar.xz
manaverse-4d94a44a3acf77653b4e4782009a49293b96c35d.zip
Add packet SMSG_PARTY_MEMBER_INFO 0x0a43.
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-rw-r--r--src/net/eathena/partyrecv.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp
index 0947a525e..a7d25ef32 100644
--- a/src/net/eathena/partyrecv.cpp
+++ b/src/net/eathena/partyrecv.cpp
@@ -57,6 +57,12 @@ void PartyRecv::processPartyMemberInfo(Net::MessageIn &msg)
{
const BeingId id = msg.readBeingId("account id");
const bool leader = msg.readInt32("leader") == 0U;
+ int level = 0;
+ if (msg.getVersion() >= 20170502)
+ {
+ msg.readInt16("class");
+ level = msg.readInt16("level");
+ }
const int x = msg.readInt16("x");
const int y = msg.readInt16("y");
const bool online = msg.readInt8("online") == 0U;
@@ -79,6 +85,8 @@ void PartyRecv::processPartyMemberInfo(Net::MessageIn &msg)
member->setMap(map);
member->setX(x);
member->setY(y);
+ if (level != 0)
+ member->setLevel(level);
}
}