summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index e46517a96..9aed163d6 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -26,6 +26,7 @@
#include "game.h"
#include "gamemodifiers.h"
#include "itemshortcut.h"
+#include "settings.h"
#include "soundmanager.h"
#include "being/attributes.h"
@@ -99,7 +100,7 @@
return false;
#define callYellowBarCond(name) \
- if (modifiers && !player_node->getDisableGameModifiers()) \
+ if (modifiers && !settings.disableGameModifiers) \
{ \
modifiers->name(!inputManager.isActionActive( \
InputAction::STOP_ATTACK)); \
@@ -562,7 +563,7 @@ impHandler0(changeGameModifier)
{
if (player_node)
{
- player_node->switchGameModifiers();
+ modifiers->changeGameModifiers();
return true;
}
return false;