summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-28 00:29:14 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-29 00:18:56 +0300
commite71b8c2bd9722aae29ed36b78806867964a3121d (patch)
treea33809860b6b2be44905e17075f15a48fbd20c04 /src/inputmanager.cpp
parent9a93f235386bcb47887a33527478700df77dce94 (diff)
downloadmv-e71b8c2bd9722aae29ed36b78806867964a3121d.tar.gz
mv-e71b8c2bd9722aae29ed36b78806867964a3121d.tar.bz2
mv-e71b8c2bd9722aae29ed36b78806867964a3121d.tar.xz
mv-e71b8c2bd9722aae29ed36b78806867964a3121d.zip
add support for process all input events before entering game.
add flag for in game action conditions.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index 03aba6ecf..c04185f50 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -659,6 +659,8 @@ void InputManager::updateConditionMask()
{
mMask |= COND_NOTARGET;
}
+ if (Game::instance())
+ mMask |= COND_INGAME;
if (!player_node || player_node->getFollow().empty())
mMask |= COND_NOFOLLOW;