diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-23 19:37:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-23 19:37:38 +0300 |
commit | 5fc7ef5ed9394e613341cd4f98d908bb8483b2fd (patch) | |
tree | 46023a9726d2aee0f65d01f1d93bea78799a1036 /src/gui/windows/outfitwindow.cpp | |
parent | 4aaa299b111d07d7e4425e60a888e8496b9da5c1 (diff) | |
download | manaplus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.tar.gz manaplus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.tar.bz2 manaplus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.tar.xz manaplus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.zip |
Remove default parameters from outfitswindow.
Diffstat (limited to 'src/gui/windows/outfitwindow.cpp')
-rw-r--r-- | src/gui/windows/outfitwindow.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp index 3d190ad00..de6319b4c 100644 --- a/src/gui/windows/outfitwindow.cpp +++ b/src/gui/windows/outfitwindow.cpp @@ -254,7 +254,9 @@ void OutfitWindow::action(const ActionEvent &event) } else if (eventId == "equip") { - wearOutfit(mCurrentOutfit); + wearOutfit(mCurrentOutfit, + true, + false); if (Game::instance() != nullptr) Game::instance()->setValidSpeed(); } @@ -266,7 +268,8 @@ void OutfitWindow::action(const ActionEvent &event) } } -void OutfitWindow::wearOutfit(const int outfit, const bool unwearEmpty, +void OutfitWindow::wearOutfit(const int outfit, + const bool unwearEmpty, const bool select) { bool isEmpty = true; @@ -647,7 +650,9 @@ void OutfitWindow::wearNextOutfit(const bool all) } } } - wearOutfit(mCurrentOutfit); + wearOutfit(mCurrentOutfit, + true, + false); } void OutfitWindow::wearPreviousOutfit(const bool all) @@ -669,7 +674,9 @@ void OutfitWindow::wearPreviousOutfit(const bool all) } } } - wearOutfit(mCurrentOutfit); + wearOutfit(mCurrentOutfit, + true, + false); } void OutfitWindow::copyFromEquiped() @@ -701,12 +708,16 @@ void OutfitWindow::copyFromEquiped(const int dst) void OutfitWindow::wearAwayOutfit() { copyFromEquiped(OUTFITS_COUNT); - wearOutfit(mAwayOutfit, false); + wearOutfit(mAwayOutfit, + false, + false); } void OutfitWindow::unwearAwayOutfit() { - wearOutfit(OUTFITS_COUNT); + wearOutfit(OUTFITS_COUNT, + true, + false); } void OutfitWindow::clearCurrentOutfit() |