diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/game.cpp b/src/game.cpp index 4762055fa..d82f13913 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1391,16 +1391,13 @@ void Game::handleInput() if (event.active.state & SDL_APPMOUSEFOCUS) Client::setMouseFocused(event.active.gain); - if (player_node) + if (player_node && player_node->getAwayMode()) { - if (player_node->getAwayMode()) - { - if (Client::getInputFocused() || Client::getMouseFocused()) - fpsLimit = config.getIntValue("fpslimit"); - else - fpsLimit = config.getIntValue("altfpslimit"); - Client::setFramerate(fpsLimit); - } + if (Client::getInputFocused() || Client::getMouseFocused()) + fpsLimit = config.getIntValue("fpslimit"); + else + fpsLimit = config.getIntValue("altfpslimit"); + Client::setFramerate(fpsLimit); } else { |