summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 13:09:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 13:09:36 +0300
commite0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa (patch)
tree76f07a431697e8b5dd243cf15e2e43c0a6c8199e /src/eventsmanager.cpp
parent6576d46a7f420edfc53226811a3158d6e509a7bc (diff)
downloadplus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.tar.gz
plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.tar.bz2
plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.tar.xz
plus-e0930dc673f0fcc9afe21d158c60c8b6f8f9dfaa.zip
Fix compilation with SDL2.
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp4
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);
}