summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-31 18:14:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-31 18:14:44 +0300
commitcdd2dd27b61e36a376dc32947fd9e29f0a492d9b (patch)
tree88ec4ac6acbc090600c52bddddd978a15e0d0312 /src/gui/windows/buydialog.cpp
parentc0255f61476a509780d316801a6a3d54c2f362ec (diff)
downloadmv-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.tar.gz
mv-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.tar.bz2
mv-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.tar.xz
mv-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.zip
Allow buy multiply items at once from cash shops.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index df478891c..d2c4e3a6a 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -277,11 +277,11 @@ void BuyDialog::init()
setDefaultSize(260, 230, ImagePosition::CENTER);
// reset advance flag for personal shops and cash shop
- if (mAdvanced && (
+ if (mAdvanced &&
#ifdef TMWA_SUPPORT
- mNpcId == fromInt(Nick, BeingId) ||
+ mNpcId == fromInt(Nick, BeingId)
#endif // TMWA_SUPPORT
- mNpcId == fromInt(Cash, BeingId)))
+ )
{
mAdvanced = false;
}
@@ -653,6 +653,10 @@ void BuyDialog::action(const ActionEvent &event)
items);
}
}
+ else if (mNpcId == fromInt(Cash, BeingId))
+ {
+ cashShopHandler->buyItems(0, items);
+ }
else
{
npcHandler->buyItems(items);