diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:57:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:57:07 +0300 |
commit | 5719a23f9b0729f04ed1fa5dc6cc680c58d514d4 (patch) | |
tree | d4fc1a73ea263a737e56d740a266bea34a1bbfcd /src/gui/windows/buydialog.cpp | |
parent | 31e7a7d05f36495df0176fc31d5894e216c3cdf4 (diff) | |
download | manaplus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.gz manaplus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.bz2 manaplus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.xz manaplus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.zip |
Move units into db directory.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index d2c4e3a6a..c5fdac885 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -24,7 +24,6 @@ #include "actormanager.h" #include "configuration.h" -#include "units.h" #include "being/being.h" @@ -57,6 +56,8 @@ #include "resources/iteminfo.h" +#include "resources/db/unitsdb.h" + #include "utils/delete2.h" #include <algorithm> @@ -738,8 +739,8 @@ void BuyDialog::updateButtonsAndLabels() mQuantityLabel->setCaption(strprintf("%d / %d", mAmountItems, mMaxItems)); // TRANSLATORS: buy dialog label mMoneyLabel->setCaption(strprintf(_("Price: %s / Total: %s"), - Units::formatCurrency(price).c_str(), - Units::formatCurrency(mMoney - price).c_str())); + UnitsDb::formatCurrency(price).c_str(), + UnitsDb::formatCurrency(mMoney - price).c_str())); } void BuyDialog::setVisible(Visible visible) |