summaryrefslogtreecommitdiff
path: root/src/eventsmanager.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/eventsmanager.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/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index cdb1a5f03..fc86bc7db 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -498,7 +498,7 @@ void EventsManager::handleActive(const SDL_Event &event)
WindowManager::setIsMinimized(false);
if (inGame && player_node)
{
- if (!player_node->getAway())
+ if (!settings.awayMode)
fpsLimit = config.getIntValue("fpslimit");
player_node->setHalfAway(false);
}
@@ -510,7 +510,7 @@ void EventsManager::handleActive(const SDL_Event &event)
client->setState(STATE_EXIT);
#else
WindowManager::setIsMinimized(true);
- if (inGame && player_node && !player_node->getAway())
+ if (inGame && player_node && !settings.awayMode)
{
fpsLimit = config.getIntValue("altfpslimit");
player_node->setHalfAway(true);