mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 10:59:12 +00:00
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:
committed by
Loïc Guilloux
parent
5b0b7ba354
commit
151e80650f
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user