summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eventsmanager.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index ddefbddbc..fec747ccc 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -559,13 +559,10 @@ void EventsManager::handleSDL2WindowEvent(const SDL_Event &event)
case SDL_WINDOWEVENT_MINIMIZED:
WindowManager::setIsMinimized(true);
#ifndef DYECMD
- if (inGame)
+ if (inGame && localPlayer)
{
- if (localPlayer && !settings.awayMode)
- {
- fpsLimit = config.getIntValue("altfpslimit");
- localPlayer->setHalfAway(true);
- }
+ fpsLimit = config.getIntValue("altfpslimit");
+ localPlayer->setHalfAway(true);
}
#endif // DYECMD
@@ -579,8 +576,7 @@ void EventsManager::handleSDL2WindowEvent(const SDL_Event &event)
{
if (localPlayer)
{
- if (!settings.awayMode)
- fpsLimit = config.getIntValue("fpslimit");
+ fpsLimit = config.getIntValue("fpslimit");
localPlayer->setHalfAway(false);
}
}