summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-31 21:29:00 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-31 21:29:00 +0000
commit36d28236321b6a2824ad4f394faeabbf79626808 (patch)
tree7d2475acf84852f2a21cc29eecbf7524cd58ff52 /src/gui/trade.cpp
parentc9f930c759004e179545c3b82992e3f8a12345f2 (diff)
downloadmana-client-36d28236321b6a2824ad4f394faeabbf79626808.tar.gz
mana-client-36d28236321b6a2824ad4f394faeabbf79626808.tar.bz2
mana-client-36d28236321b6a2824ad4f394faeabbf79626808.tar.xz
mana-client-36d28236321b6a2824ad4f394faeabbf79626808.zip
Removed legacy inventory code. Added display of equipment.
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r--src/gui/trade.cpp8
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);
}