diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:14:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:14:44 +0300 |
commit | cdd2dd27b61e36a376dc32947fd9e29f0a492d9b (patch) | |
tree | 88ec4ac6acbc090600c52bddddd978a15e0d0312 /src/gui/windows/buydialog.cpp | |
parent | c0255f61476a509780d316801a6a3d54c2f362ec (diff) | |
download | plus-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.tar.gz plus-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.tar.bz2 plus-cdd2dd27b61e36a376dc32947fd9e29f0a492d9b.tar.xz plus-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.cpp | 10 |
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); |