summaryrefslogtreecommitdiff
path: root/src/gui/tradewindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-19 20:42:46 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-19 20:42:46 +0300
commit7191eefef8c7a02c7cf56f598ea76fe791328434 (patch)
treed45d89df864f4ea4906e764c0a825a7daf63e3e3 /src/gui/tradewindow.h
parent05d7793aa71a600d76d169ca80744768b277c17b (diff)
downloadmanaplus-7191eefef8c7a02c7cf56f598ea76fe791328434.tar.gz
manaplus-7191eefef8c7a02c7cf56f598ea76fe791328434.tar.bz2
manaplus-7191eefef8c7a02c7cf56f598ea76fe791328434.tar.xz
manaplus-7191eefef8c7a02c7cf56f598ea76fe791328434.zip
Fix adding items to trade.
Now possible add same items from all ways. Also added protection from adding same stackable items.
Diffstat (limited to 'src/gui/tradewindow.h')
-rw-r--r--src/gui/tradewindow.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/tradewindow.h b/src/gui/tradewindow.h
index 3c5ed56b0..16b3d9d6f 100644
--- a/src/gui/tradewindow.h
+++ b/src/gui/tradewindow.h
@@ -95,7 +95,7 @@ class TradeWindow : public Window, gcn::ActionListener, gcn::SelectionListener
/**
* Send trade packet.
*/
- void tradeItem(Item *item, int quantity);
+ void tradeItem(Item *item, int quantity, bool check = false);
/**
* Updates the labels and makes sure only one item is selected in
@@ -131,6 +131,8 @@ class TradeWindow : public Window, gcn::ActionListener, gcn::SelectionListener
std::string getAutoTradeNick()
{ return mAutoAddToNick; }
+ bool checkItem(Item *item);
+
private:
enum Status
{