From 7191eefef8c7a02c7cf56f598ea76fe791328434 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Aug 2011 20:42:46 +0300 Subject: Fix adding items to trade. Now possible add same items from all ways. Also added protection from adding same stackable items. --- src/gui/tradewindow.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/tradewindow.h') 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 { -- cgit v1.2.3-60-g2f50