summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-25 23:19:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-25 23:19:03 +0300
commit793e570728840dd788f9104e54828c1530016d61 (patch)
tree750a30c9b634907389146f79c668a66f08044248 /src
parentbf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb (diff)
downloadmanaverse-793e570728840dd788f9104e54828c1530016d61.tar.gz
manaverse-793e570728840dd788f9104e54828c1530016d61.tar.bz2
manaverse-793e570728840dd788f9104e54828c1530016d61.tar.xz
manaverse-793e570728840dd788f9104e54828c1530016d61.zip
Fix fps after exiting from away mode (SDL2)
Diffstat (limited to 'src')
-rw-r--r--src/gamemodifiers.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gamemodifiers.cpp b/src/gamemodifiers.cpp
index 8d97c94e8..9a21c738d 100644
--- a/src/gamemodifiers.cpp
+++ b/src/gamemodifiers.cpp
@@ -21,6 +21,7 @@
#include "gamemodifiers.h"
#include "configuration.h"
+#include "game.h"
#include "settings.h"
#include "soundmanager.h"
@@ -408,6 +409,7 @@ void GameModifiers::changeAwayMode()
localPlayer->setAfkTime(0);
localPlayer->setHalfAway(false);
localPlayer->updateName();
+ Game::instance()->updateFrameRate(0);
UpdateStatusListener::distributeEvent();
if (settings.awayMode)
{