summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 00:39:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 00:39:12 +0300
commit6336dabcb33ca6b4d417b352fa0b12651b6f4c57 (patch)
treea84879f46ee80d2f98d0418cbcbbb81e28da8e76 /src/input/inputmanager.cpp
parent1995e723df5d5aef32b289c0122493ee6fe18b0e (diff)
downloadplus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.gz
plus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.bz2
plus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.xz
plus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.zip
move "change away type" option into gamemodifiers.
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index f8d3f7505..6cb2c998b 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -653,7 +653,7 @@ void InputManager::updateConditionMask()
if (!BuyDialog::isActive() && !SellDialog::isActive())
mMask |= InputCondition::NOBUYSELL;
- if (!player_node || !player_node->getAway())
+ if (!settings.awayMode)
mMask |= InputCondition::NOAWAY;
if (!setupWindow || !setupWindow->isWindowVisible())