From cdd2dd27b61e36a376dc32947fd9e29f0a492d9b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Jan 2017 18:14:44 +0300 Subject: Allow buy multiply items at once from cash shops. --- src/gui/windows/buydialog.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/windows') 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); -- cgit v1.2.3-60-g2f50