mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-22 12:42:43 +01:00
Codechange: replace fprintf(<FILE*> with fmt::print(<FILE*>
This commit is contained in:
@@ -112,7 +112,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string)
|
||||
|
||||
if (_network_dedicated) {
|
||||
NetworkAdminConsole("console", str);
|
||||
fprintf(stdout, "%s%s\n", GetLogPrefix(), str);
|
||||
fmt::print("{}{}\n", GetLogPrefix(), str);
|
||||
fflush(stdout);
|
||||
IConsoleWriteToLogFile(str);
|
||||
free(str); // free duplicated string since it's not used anymore
|
||||
|
||||
Reference in New Issue
Block a user