mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r10295) -Fix [FS#775]: flush stdout on dedicated server output to ensure an update of stdout (Zuu)
This commit is contained in:
parent
62cb041238
commit
0844eaabc5
@ -388,7 +388,8 @@ void IConsolePrint(uint16 color_code, const char *string)
|
|||||||
str_validate(str);
|
str_validate(str);
|
||||||
|
|
||||||
if (_network_dedicated) {
|
if (_network_dedicated) {
|
||||||
printf("%s\n", str);
|
fprintf(stdout, "%s\n", str);
|
||||||
|
fflush(stdout);
|
||||||
IConsoleWriteToLogFile(str);
|
IConsoleWriteToLogFile(str);
|
||||||
free(str); // free duplicated string since it's not used anymore
|
free(str); // free duplicated string since it's not used anymore
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user