diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-25 23:19:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-25 23:19:03 +0300 |
commit | 793e570728840dd788f9104e54828c1530016d61 (patch) | |
tree | 750a30c9b634907389146f79c668a66f08044248 | |
parent | bf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb (diff) | |
download | plus-793e570728840dd788f9104e54828c1530016d61.tar.gz plus-793e570728840dd788f9104e54828c1530016d61.tar.bz2 plus-793e570728840dd788f9104e54828c1530016d61.tar.xz plus-793e570728840dd788f9104e54828c1530016d61.zip |
Fix fps after exiting from away mode (SDL2)
-rw-r--r-- | src/gamemodifiers.cpp | 2 |
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) { |