summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-02 19:36:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 19:36:00 +0300
commit3fa501670bfd9c592768bc736a257d4c93e42599 (patch)
tree9580f4b49e6d622fbb5cff986eda81cea18ba88f /src/input/inputmanager.cpp
parentf924674239571a40b0806136a49b4da3edcadbbf (diff)
downloadplus-3fa501670bfd9c592768bc736a257d4c93e42599.tar.gz
plus-3fa501670bfd9c592768bc736a257d4c93e42599.tar.bz2
plus-3fa501670bfd9c592768bc736a257d4c93e42599.tar.xz
plus-3fa501670bfd9c592768bc736a257d4c93e42599.zip
Add player alive input flag.
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