From f27e666d3c7001d62d5292644cae8b3cfaa9af01 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Mar 2013 22:24:38 +0300 Subject: Add config counters for starting client and entering game. --- src/client.cpp | 2 ++ src/game.cpp | 2 ++ 2 files changed, 4 insertions(+) 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 -- cgit v1.2.3-60-g2f50