summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actionmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index 71e9a48b2..7155e3c2c 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -91,7 +91,8 @@
#define callYellowBar(name) \
if (player_node) \
{ \
- player_node->name(true); \
+ player_node->name(!inputManager.isActionActive( \
+ InputAction::STOP_ATTACK)); \
return true; \
} \
return false;
@@ -99,7 +100,8 @@
#define callYellowBarCond(name) \
if (player_node && !player_node->getDisableGameModifiers()) \
{ \
- player_node->name(true); \
+ player_node->name(!inputManager.isActionActive( \
+ InputAction::STOP_ATTACK)); \
return true; \
} \
return false;