From 549d21c0c9995c2120ea539cfb3551817df214a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Sep 2014 19:33:37 +0300 Subject: Move processTradeItemAdd from ea namespace into eathena and tmwa. --- src/net/ea/tradehandler.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/net/ea/tradehandler.cpp') diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index 5f507a01a..d22a602a6 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -128,29 +128,6 @@ void TradeHandler::processTradeResponse(Net::MessageIn &msg) const } } -void TradeHandler::processTradeItemAdd(Net::MessageIn &msg) -{ - const int amount = msg.readInt32(); - const int type = msg.readInt16(); - const uint8_t identify = msg.readUInt8(); // identified flag - msg.readUInt8(); // attribute - const uint8_t refine = msg.readUInt8(); // refine - msg.skip(8); // card (4 shorts) - - if (tradeWindow) - { - if (type == 0) - { - tradeWindow->setMoney(amount); - } - else - { - tradeWindow->addItem2(type, false, amount, - refine, identify, false); - } - } -} - void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) { // Trade: New Item add response (was 0x00ea, now 01b1) -- cgit v1.2.3-60-g2f50