From 36d28236321b6a2824ad4f394faeabbf79626808 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Tue, 31 Jul 2007 21:29:00 +0000 Subject: Removed legacy inventory code. Added display of equipment. --- src/gui/trade.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/trade.cpp') diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index 37faafdf..337bd7ea 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -137,12 +137,12 @@ void TradeWindow::addMoney(int amount) mMoneyLabel->adjustSize(); } -void TradeWindow::addItem(int id, bool own, int quantity, bool equipment) +void TradeWindow::addItem(int id, bool own, int quantity) { if (own) { - mMyInventory->addItem(id, quantity, equipment); + mMyInventory->addItem(id, quantity); } else { - mPartnerInventory->addItem(id, quantity, equipment); + mPartnerInventory->addItem(id, quantity); } } @@ -217,7 +217,7 @@ void TradeWindow::receivedOk(bool own) void TradeWindow::tradeItem(Item *item, int quantity) { Net::GameServer::Player::tradeItem(item->getInvIndex(), quantity); - addItem(item->getId(), true, quantity, item->isEquipment()); + addItem(item->getId(), true, quantity); item->increaseQuantity(-quantity); } -- cgit v1.2.3-70-g09d2