summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 83e01d0ba..e551d37f2 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -715,6 +715,9 @@ void InputManager::updateConditionMask()
if (!localPlayer || localPlayer->getFollow().empty())
mMask |= InputCondition::NOFOLLOW;
+
+ if (localPlayer && localPlayer->isAlive())
+ mMask |= InputCondition::ALIVE;
}
bool InputManager::checkKey(const InputActionData *const key) const