diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-01 01:26:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-01 01:26:24 +0300 |
commit | aca306abdee1921d5536fc1e10aea110f599d471 (patch) | |
tree | 75d7cce3b9d66193529b8046139e0060bbcaac65 /src/gui/windows/buydialog.cpp | |
parent | 24902ba328260cb496c62e236a644ebb990e3fd4 (diff) | |
download | manaplus-aca306abdee1921d5536fc1e10aea110f599d471.tar.gz manaplus-aca306abdee1921d5536fc1e10aea110f599d471.tar.bz2 manaplus-aca306abdee1921d5536fc1e10aea110f599d471.tar.xz manaplus-aca306abdee1921d5536fc1e10aea110f599d471.zip |
Use npc currency in buy dialog.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index 620c95817..797edd1ab 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -194,6 +194,7 @@ BuyDialog::BuyDialog() : this, "namefilter", true)), mFilterLabel(nullptr), mNick(), + mCurrency(), mNpcId(fromInt(Items, BeingId)), mMoney(0), mAmountItems(0), @@ -745,8 +746,8 @@ void BuyDialog::updateButtonsAndLabels() mQuantityLabel->setCaption(strprintf("%d / %d", mAmountItems, mMaxItems)); // TRANSLATORS: buy dialog label mMoneyLabel->setCaption(strprintf(_("Price: %s / Total: %s"), - UnitsDb::formatCurrency(price).c_str(), - UnitsDb::formatCurrency(mMoney - price).c_str())); + UnitsDb::formatCurrency(mCurrency, price).c_str(), + UnitsDb::formatCurrency(mCurrency, mMoney - price).c_str())); } void BuyDialog::setVisible(Visible visible) |