diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-23 13:09:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-23 13:09:36 +0300 |
commit | e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa (patch) | |
tree | 76f07a431697e8b5dd243cf15e2e43c0a6c8199e | |
parent | 6576d46a7f420edfc53226811a3158d6e509a7bc (diff) | |
download | plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.tar.gz plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.tar.bz2 plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.tar.xz plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.zip |
Fix compilation with SDL2.
-rw-r--r-- | src/eventsmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |