forked from mirror/OpenTTD
(svn r10295) -Fix [FS#775]: flush stdout on dedicated server output to ensure an update of stdout (Zuu)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user