Fix #9940: Print debuglevel parse errors to console when changed from console

This commit is contained in:
Niels Martin Hansen
2022-08-26 12:08:47 +02:00
parent dcdc8d187c
commit c6953f13e4
4 changed files with 8 additions and 6 deletions

View File

@@ -564,7 +564,7 @@ int openttd_main(int argc, char *argv[])
videodriver = "dedicated";
blitter = "null";
dedicated = true;
SetDebugString("net=4");
SetDebugString("net=4", ShowInfo);
if (mgo.opt != nullptr) {
scanner->dedicated_host = ParseFullConnectionString(mgo.opt, scanner->dedicated_port);
}
@@ -588,7 +588,7 @@ int openttd_main(int argc, char *argv[])
#if defined(_WIN32)
CreateConsole();
#endif
if (mgo.opt != nullptr) SetDebugString(mgo.opt);
if (mgo.opt != nullptr) SetDebugString(mgo.opt, ShowInfo);
break;
}
case 'e': _switch_mode = (_switch_mode == SM_LOAD_GAME || _switch_mode == SM_LOAD_SCENARIO ? SM_LOAD_SCENARIO : SM_EDITOR); break;