summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-05 22:24:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-05 22:24:38 +0300
commitf27e666d3c7001d62d5292644cae8b3cfaa9af01 (patch)
tree00c3a829ae91262daa9738e96abb8b4b52eaa4fa /src
parentff83a1b745c4c679eb01c9db1f0a82ab613e2195 (diff)
downloadplus-f27e666d3c7001d62d5292644cae8b3cfaa9af01.tar.gz
plus-f27e666d3c7001d62d5292644cae8b3cfaa9af01.tar.bz2
plus-f27e666d3c7001d62d5292644cae8b3cfaa9af01.tar.xz
plus-f27e666d3c7001d62d5292644cae8b3cfaa9af01.zip
Add config counters for starting client and entering game.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp2
-rw-r--r--src/game.cpp2
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