From e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Jul 2014 13:09:36 +0300 Subject: Fix compilation with SDL2. --- src/eventsmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp index fc86bc7db..acb2ca512 100644 --- a/src/eventsmanager.cpp +++ b/src/eventsmanager.cpp @@ -445,7 +445,7 @@ void EventsManager::handleSDL2WindowEvent(const SDL_Event &event) WindowManager::setIsMinimized(true); if (inGame) { - if (player_node && !player_node->getAway()) + if (player_node && !settings.awayMode) { fpsLimit = config.getIntValue("altfpslimit"); player_node->setHalfAway(true); @@ -460,7 +460,7 @@ void EventsManager::handleSDL2WindowEvent(const SDL_Event &event) { if (player_node) { - if (!player_node->getAway()) + if (!settings.awayMode) fpsLimit = config.getIntValue("fpslimit"); player_node->setHalfAway(false); } -- cgit v1.2.3-70-g09d2