summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-13 01:30:53 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-13 01:30:53 +0300
commitd2c132d50f618e8b533cb69d39e3e76d5439def9 (patch)
tree8c0cd8ef87cb40ce03a9004ebdbbe29a5dca1cd8 /src
parenta6dc253a3857ae4a71cbe8f2c2f734dee402d01f (diff)
downloadmv-d2c132d50f618e8b533cb69d39e3e76d5439def9.tar.gz
mv-d2c132d50f618e8b533cb69d39e3e76d5439def9.tar.bz2
mv-d2c132d50f618e8b533cb69d39e3e76d5439def9.tar.xz
mv-d2c132d50f618e8b533cb69d39e3e76d5439def9.zip
Restore normal fps limit if show error window.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 0527e8481..1434b9a16 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -568,6 +568,7 @@ void Game::logic()
map->saveExtraLayer();
}
Client::closeDialogs();
+ Client::setFramerate(config.getIntValue("fpslimit"));
disconnectedDialog = new OkDialog(_("Network Error"),
errorMessage, false);
disconnectedDialog->addActionListener(&errorListener);
@@ -576,6 +577,7 @@ void Game::logic()
}
else
{
+ Client::setFramerate(config.getIntValue("fpslimit"));
if (mAdjustPerfomance)
adjustPerfomance();
if (disconnectedDialog)