From 1a68e441ec6d7d529b5c64bfafac56ae45d3f2fb Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Tue, 14 Aug 2007 12:48:59 +0000 Subject: Removed obsolete code. Added support for money received while trading. --- src/gui/trade.cpp | 2 +- src/gui/trade.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index 78204120..cf3ad1a5 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -131,7 +131,7 @@ TradeWindow::~TradeWindow() { } -void TradeWindow::addMoney(int amount) +void TradeWindow::setMoney(int amount) { mMoneyLabel->setCaption("You get: " + toString(amount) + "z"); mMoneyLabel->adjustSize(); diff --git a/src/gui/trade.h b/src/gui/trade.h index bffda13f..478d2876 100644 --- a/src/gui/trade.h +++ b/src/gui/trade.h @@ -18,7 +18,7 @@ * along with The Mana World; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id $ + * $Id$ */ #ifndef _TMW_TRADE_H @@ -57,9 +57,9 @@ class TradeWindow : public Window, gcn::ActionListener, SelectionListener ~TradeWindow(); /** - * Add money to the trade window. + * Displays expected money in the trade window. */ - void addMoney(int quantity); + void setMoney(int quantity); /** * Add an item to the trade window. -- cgit v1.2.3-60-g2f50