diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-01 20:25:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-01 20:25:10 +0300 |
commit | f343b136913477cb0593dff4cad642cb3038d98d (patch) | |
tree | 1b742484bfb393fbdcd30871f2bdadff1809dc7e /src/net/eathena/partyrecv.cpp | |
parent | 5f4a9b697438f38629a9839105e7a284b39e0cde (diff) | |
download | manaverse-f343b136913477cb0593dff4cad642cb3038d98d.tar.gz manaverse-f343b136913477cb0593dff4cad642cb3038d98d.tar.bz2 manaverse-f343b136913477cb0593dff4cad642cb3038d98d.tar.xz manaverse-f343b136913477cb0593dff4cad642cb3038d98d.zip |
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-rw-r--r-- | src/net/eathena/partyrecv.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp index c5f04008f..e23959a1c 100644 --- a/src/net/eathena/partyrecv.cpp +++ b/src/net/eathena/partyrecv.cpp @@ -90,11 +90,14 @@ void PartyRecv::processPartySettings(Net::MessageIn &msg) } msg.readInt32("party exp"); - const PartyShareT exp = static_cast<PartyShareT>( - msg.readInt8("share exp")); - const PartyShareT item = static_cast<PartyShareT>( - msg.readInt8("share item")); - Ea::PartyRecv::processPartySettingsContinue(msg, exp, item); + if (msg.getVersion() >= 20090603) + { + const PartyShareT exp = static_cast<PartyShareT>( + msg.readInt8("share exp")); + const PartyShareT item = static_cast<PartyShareT>( + msg.readInt8("share item")); + Ea::PartyRecv::processPartySettingsContinue(msg, exp, item); + } } void PartyRecv::processPartyInfo(Net::MessageIn &msg) |