From 793e570728840dd788f9104e54828c1530016d61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 25 Jan 2015 23:19:03 +0300 Subject: Fix fps after exiting from away mode (SDL2) --- src/gamemodifiers.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2