diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-07 18:15:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-07 18:15:48 +0300 |
commit | e42014689b993e63c8eef5b7b6cbf7b35d3551a8 (patch) | |
tree | cff6885ea8e1f6978e28ad7fd1e46bcd2dc64f60 | |
parent | b5aa7b91572aad7aea5ec9b5b109e03a26934b6c (diff) | |
download | plus-e42014689b993e63c8eef5b7b6cbf7b35d3551a8.tar.gz plus-e42014689b993e63c8eef5b7b6cbf7b35d3551a8.tar.bz2 plus-e42014689b993e63c8eef5b7b6cbf7b35d3551a8.tar.xz plus-e42014689b993e63c8eef5b7b6cbf7b35d3551a8.zip |
Split processPartySettings into net code and not net code.
-rw-r--r-- | src/net/ea/partyhandler.cpp | 8 | ||||
-rw-r--r-- | 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; |