diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-16 16:13:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-16 16:13:08 +0300 |
commit | 901b607d96bb59c012e679918d9ca083d2ad3c2f (patch) | |
tree | 65208846072189c6c8b9c9185d4d7bcaa6ec0f4f /src/net/ea/tradehandler.cpp | |
parent | e79d2d215ed5c3a4aee43535fb72c12366c32cea (diff) | |
download | plus-901b607d96bb59c012e679918d9ca083d2ad3c2f.tar.gz plus-901b607d96bb59c012e679918d9ca083d2ad3c2f.tar.bz2 plus-901b607d96bb59c012e679918d9ca083d2ad3c2f.tar.xz plus-901b607d96bb59c012e679918d9ca083d2ad3c2f.zip |
Move processTradeResponse from ea namespace into tmwa.
Diffstat (limited to 'src/net/ea/tradehandler.cpp')
-rw-r--r-- | src/net/ea/tradehandler.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index 2a478d953..d99f5da59 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -64,19 +64,6 @@ void TradeHandler::removeItem(const int slotNum A_UNUSED, { } -void TradeHandler::processTradeResponse(Net::MessageIn &msg) -{ - if (confirmDlg || tradePartnerName.empty() - || !player_relations.hasPermission(tradePartnerName, - PlayerRelation::TRADE)) - { - tradeHandler->respond(false); - return; - } - const uint8_t type = msg.readUInt8("type"); - processTradeResponseContinue(type); -} - void TradeHandler::processTradeResponseContinue(const uint8_t type) { switch (type) |