From e42014689b993e63c8eef5b7b6cbf7b35d3551a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 18:15:48 +0300 Subject: Split processPartySettings into net code and not net code. --- src/net/ea/partyhandler.cpp | 8 +++++--- src/net/ea/partyhandler.h | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 9356e2272..cdcf79d16 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -249,10 +249,12 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) // These seem to indicate the sharing mode for exp and items const int16_t exp = msg.readInt16(); const int16_t item = msg.readInt16(); + processPartySettingsContinue(exp, item); +} - if (!Ea::partyTab) - return; - +void PartyHandler::processPartySettingsContinue(const int16_t exp, + const int16_t item) +{ switch (exp) { case Net::PartyShare::YES: diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h index 11eef00b6..aea58c7cd 100644 --- a/src/net/ea/partyhandler.h +++ b/src/net/ea/partyhandler.h @@ -80,6 +80,9 @@ class PartyHandler notfinal : public Net::PartyHandler virtual void processPartyMessage(Net::MessageIn &msg) const; + void processPartySettingsContinue(const int16_t exp, + const int16_t item); + protected: Net::PartyShare::Type mShareExp; Net::PartyShare::Type mShareItems; -- cgit v1.2.3-70-g09d2