diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-05 22:24:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-05 22:24:38 +0300 |
commit | f27e666d3c7001d62d5292644cae8b3cfaa9af01 (patch) | |
tree | 00c3a829ae91262daa9738e96abb8b4b52eaa4fa | |
parent | ff83a1b745c4c679eb01c9db1f0a82ab613e2195 (diff) | |
download | mv-f27e666d3c7001d62d5292644cae8b3cfaa9af01.tar.gz mv-f27e666d3c7001d62d5292644cae8b3cfaa9af01.tar.bz2 mv-f27e666d3c7001d62d5292644cae8b3cfaa9af01.tar.xz mv-f27e666d3c7001d62d5292644cae8b3cfaa9af01.zip |
Add config counters for starting client and entering game.
-rw-r--r-- | src/client.cpp | 2 | ||||
-rw-r--r-- | src/game.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 5a0733e92..3358287a1 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -329,6 +329,8 @@ void Client::gameInit() logger->log("init 4"); logger->setDebugLog(config.getBoolValue("debugLog")); + config.incValue("runcount"); + storeSafeParameters(); #ifdef ENABLE_NLS diff --git a/src/game.cpp b/src/game.cpp index 6f569f69a..c614a96ac 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -383,6 +383,8 @@ Game::Game(): assert(!mInstance); mInstance = this; + config.incValue("gamecount"); + disconnectedDialog = nullptr; // Create the viewport |