summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-23 19:37:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-23 19:37:38 +0300
commit5fc7ef5ed9394e613341cd4f98d908bb8483b2fd (patch)
tree46023a9726d2aee0f65d01f1d93bea78799a1036 /src/progs
parent4aaa299b111d07d7e4425e60a888e8496b9da5c1 (diff)
downloadplus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.tar.gz
plus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.tar.bz2
plus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.tar.xz
plus-5fc7ef5ed9394e613341cd4f98d908bb8483b2fd.zip
Remove default parameters from outfitswindow.
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/manaplus/actions/actions.cpp4
-rw-r--r--src/progs/manaplus/actions/move.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp
index 64512517b..715192bf9 100644
--- a/src/progs/manaplus/actions/actions.cpp
+++ b/src/progs/manaplus/actions/actions.cpp
@@ -345,7 +345,9 @@ impHandler(outfit)
const int num = event.action - InputAction::OUTFIT_1;
if ((outfitWindow != nullptr) && num >= 0)
{
- outfitWindow->wearOutfit(num);
+ outfitWindow->wearOutfit(num,
+ true,
+ false);
if (Game::instance() != nullptr)
Game::instance()->setValidSpeed();
return true;
diff --git a/src/progs/manaplus/actions/move.cpp b/src/progs/manaplus/actions/move.cpp
index ea4088f61..d7c73eb1f 100644
--- a/src/progs/manaplus/actions/move.cpp
+++ b/src/progs/manaplus/actions/move.cpp
@@ -104,7 +104,7 @@ impHandler(moveLeft)
if (outfitWindow != nullptr &&
inputManager.isActionActive(InputAction::WEAR_OUTFIT))
{
- outfitWindow->wearPreviousOutfit();
+ outfitWindow->wearPreviousOutfit(false);
if (Game::instance() != nullptr)
Game::instance()->setValidSpeed();
return true;
@@ -125,7 +125,7 @@ impHandler(moveRight)
if (outfitWindow != nullptr &&
inputManager.isActionActive(InputAction::WEAR_OUTFIT))
{
- outfitWindow->wearNextOutfit();
+ outfitWindow->wearNextOutfit(false);
if (Game::instance() != nullptr)
Game::instance()->setValidSpeed();
return true;