summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2d204499d..21f03d42c 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1084,13 +1084,19 @@ void Game::handleInput()
{ // window restore
Client::setIsMinimized(false);
if (player_node && !player_node->getAwayMode())
+ {
fpsLimit = config.getIntValue("fpslimit");
+ player_node->setHalfAway(false);
+ }
}
else
{ // window minimisation
Client::setIsMinimized(true);
if (player_node && !player_node->getAwayMode())
+ {
fpsLimit = config.getIntValue("altfpslimit");
+ player_node->setHalfAway(true);
+ }
}
Client::setFramerate(fpsLimit);
}