summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-24 20:58:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-24 20:58:18 +0300
commit75c5b3d32afdb34b824daafaa6d4300b9a8ec06b (patch)
treecd40cd214fd3f590ec7af6f4ca5c627d4ffed068 /src/game.cpp
parent280e7f9dcf757bed0bf652cee1a1485c695cc757 (diff)
downloadmv-75c5b3d32afdb34b824daafaa6d4300b9a8ec06b.tar.gz
mv-75c5b3d32afdb34b824daafaa6d4300b9a8ec06b.tar.bz2
mv-75c5b3d32afdb34b824daafaa6d4300b9a8ec06b.tar.xz
mv-75c5b3d32afdb34b824daafaa6d4300b9a8ec06b.zip
Add option to disable logging for better performance while connected to server.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 0451dd516..675667cf0 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -409,10 +409,13 @@ Game::Game() :
if (localPlayer)
localPlayer->updatePets();
+
+ settings.disableLoggingInGame = config.getBoolValue("disableLoggingInGame");
}
Game::~Game()
{
+ settings.disableLoggingInGame = false;
touchManager.setInGame(false);
config.write();
serverConfig.write();