summaryrefslogtreecommitdiff
path: root/src/game.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/game.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/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index f97b55d66..aaa0ed9cf 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -686,7 +686,7 @@ void Game::adjustPerfomance()
mNextAdjustTime = time + adjustDelay;
if (mAdjustLevel > 3 || !player_node || player_node->getHalfAway()
- || player_node->getAway())
+ || settings.awayMode)
{
return;
}
@@ -906,7 +906,7 @@ void Game::updateFrameRate(int fpsLimit)
{
if (!fpsLimit)
{
- if (player_node && player_node->getAway())
+ if (settings.awayMode)
{
if (settings.inputFocused || settings.mouseFocused)
fpsLimit = config.getIntValue("fpslimit");
@@ -934,7 +934,7 @@ void Game::handleInput()
eventsManager.handleGameEvents();
// If the user is configuring the keys then don't respond.
- if (!player_node || !keyboard.isEnabled() || player_node->getAway())
+ if (!keyboard.isEnabled() || settings.awayMode)
{
BLOCK_END("Game::handleInput 1")
return;