summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 7a66c0b19..ad819230b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1002,10 +1002,15 @@ void Game::updateFrameRate(int fpsLimit)
{
if (settings.awayMode)
{
- if (settings.inputFocused || settings.mouseFocused)
+ if (settings.inputFocused != KeyboardFocus::Unfocused ||
+ settings.mouseFocused)
+ {
fpsLimit = config.getIntValue("fpslimit");
+ }
else
+ {
fpsLimit = config.getIntValue("altfpslimit");
+ }
}
else
{