Fixes dlogger PR

When applied this commit fixes the unix build of the previous dLogger PR.
This commit also fixes backwards compatability with config files.
This commit is contained in:
wincent
2021-12-13 16:57:43 +01:00
parent 81d25dd574
commit 259c236b72
6 changed files with 10 additions and 8 deletions

View File

@@ -136,7 +136,7 @@ int main(int argc, char** argv) {
dConfig config("worldconfig.ini");
Game::config = &config;
Game::logger->SetLogToConsole(bool(std::stoi(config.GetValue("log_to_console"))));
Game::logger->SetLogDebugStatements(bool(std::stoi(config.GetValue("log_debug_statements"))));
Game::logger->SetLogDebugStatements(config.GetValue("log_debug_statements") == "1");
if (config.GetValue("disable_chat") == "1") chatDisabled = true;
// Connect to CDClient