From c1002b4ad22d6bff69291fff17c44c1386af32ab Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 5 Jul 2003 08:42:50 +0000 Subject: Fix multiple debug level messages, when debug level is set in the config file. svn-id: r8764 --- common/gameDetector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index 312102aa58..ef3b5c1384 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -290,10 +290,8 @@ void GameDetector::updateconfig() { _sfx_volume = g_config->getInt("sfx_volume", _sfx_volume); _debugLevel = g_config->getInt("debuglevel", _debugLevel); - if (_debugLevel > 0) { + if (_debugLevel > 0) _debugMode = true; - debug(1, "Debuglevel (from config): %d", _debugLevel); - } // We use strtol for the tempo to allow it to be specified in hex. if ((val = g_config->get("tempo"))) @@ -530,6 +528,8 @@ void GameDetector::setGame(const String &name) { g_config->delete_domain ("_COMMAND_LINE"); g_config->delete_domain ("_USER_OVERRIDES"); g_config->set_domain(name); + if (_debugMode) + debug(1, "Debuglevel (from config): %d", _debugLevel); } int GameDetector::parseGraphicsMode(const char *s) { -- cgit v1.2.3