diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-31 21:29:00 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-31 21:29:00 +0000 |
commit | 36d28236321b6a2824ad4f394faeabbf79626808 (patch) | |
tree | 7d2475acf84852f2a21cc29eecbf7524cd58ff52 /src/gui/trade.cpp | |
parent | c9f930c759004e179545c3b82992e3f8a12345f2 (diff) | |
download | mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.gz mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.bz2 mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.xz mana-36d28236321b6a2824ad4f394faeabbf79626808.zip |
Removed legacy inventory code. Added display of equipment.
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r-- | src/gui/trade.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |