summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-11-22 01:56:05 +0000
committerIra Rice <irarice@gmail.com>2008-11-22 01:56:05 +0000
commit73ccb1a8eacd7cb339eca67d7312107739f03605 (patch)
tree7c08db85553087b13bb6a7d286c399000a974ee0 /src/gui/buy.cpp
parentf5c0ed3ec4216219494121721a4cce0c7ec4fb34 (diff)
downloadMana-73ccb1a8eacd7cb339eca67d7312107739f03605.tar.gz
Mana-73ccb1a8eacd7cb339eca67d7312107739f03605.tar.bz2
Mana-73ccb1a8eacd7cb339eca67d7312107739f03605.tar.xz
Mana-73ccb1a8eacd7cb339eca67d7312107739f03605.zip
While there is still a small visual artifact, this patch fixes the buy
window so that it properly reports how much money you have.
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index a4574eb7..597a7cad 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -156,9 +156,6 @@ void BuyDialog::action(const gcn::ActionEvent &event)
mSlider->setValue(mAmountItems);
updateButtonsAndLabels();
}
- // TODO: Actually we'd have a bug elsewhere if this check for the number
- // of items to be bought ever fails, Bertram removed the assertions, is
- // there a better way to ensure this fails in an _obivous_ way in C++?
else if (event.getId() == "buy" && mAmountItems > 0 &&
mAmountItems <= mMaxItems)
{