summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-20 00:10:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-20 00:10:57 +0300
commit39bac12e561d6cfd9ee8707069ec07ecee4efe00 (patch)
tree07e7cd487a0bc7bb28f8cbb03bc2f459f92d1be8 /src/net/eathena/partyrecv.cpp
parentf1fcca9730e0224668e5edd74856bd4a816adee4 (diff)
downloadplus-39bac12e561d6cfd9ee8707069ec07ecee4efe00.tar.gz
plus-39bac12e561d6cfd9ee8707069ec07ecee4efe00.tar.bz2
plus-39bac12e561d6cfd9ee8707069ec07ecee4efe00.tar.xz
plus-39bac12e561d6cfd9ee8707069ec07ecee4efe00.zip
Fix getting party settings.
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-rw-r--r--src/net/eathena/partyrecv.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp
index f509d55c5..34239a624 100644
--- a/src/net/eathena/partyrecv.cpp
+++ b/src/net/eathena/partyrecv.cpp
@@ -58,8 +58,8 @@ void PartyRecv::processPartyMemberInfo(Net::MessageIn &msg)
msg.readString(24, "party name");
const std::string nick = msg.readString(24, "player name");
const std::string map = msg.readString(16, "map name");
- msg.readInt8("party.item&1");
- msg.readInt8("party.item&2");
+ msg.readInt8("pickup item share (&1)");
+ msg.readInt8("get item share (&2)");
if (!Ea::taParty)
return;
@@ -87,13 +87,13 @@ void PartyRecv::processPartySettings(Net::MessageIn &msg)
Ea::PartyRecv::createTab();
}
- msg.readInt32("party exp");
+ const PartyShareT exp = static_cast<PartyShareT>(
+ msg.readInt32("party exp"));
if (msg.getVersion() >= 20090603)
{
- const PartyShareT exp = static_cast<PartyShareT>(
- msg.readInt8("share exp"));
const PartyShareT item = static_cast<PartyShareT>(
- msg.readInt8("share item"));
+ msg.readInt8("pickup item share (&1)"));
+ msg.readInt8("get item share (&2)");
Ea::PartyRecv::processPartySettingsContinue(msg, exp, item);
}
}