mirror of https://github.com/OpenTTD/OpenTTD.git
Codefix: don't send desync=0 log messages to commands.log (#12517)
They are only used during replay, and you want to see those in the console; not in the log.
This commit is contained in:
parent
1005c86c62
commit
a09749f6a6
|
@ -110,7 +110,7 @@ void DumpDebugFacilityNames(std::back_insert_iterator<std::string> &output_itera
|
|||
*/
|
||||
void DebugPrint(const char *category, int level, const std::string &message)
|
||||
{
|
||||
if (strcmp(category, "desync") == 0) {
|
||||
if (strcmp(category, "desync") == 0 && level != 0) {
|
||||
static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);
|
||||
if (f == nullptr) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue