(svn r10295) -Fix [FS#775]: flush stdout on dedicated server output to ensure an update of stdout (Zuu)

This commit is contained in:
truelight 2007-06-23 14:40:19 +00:00
parent 62cb041238
commit 0844eaabc5
1 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,8 @@ void IConsolePrint(uint16 color_code, const char *string)
str_validate(str);
if (_network_dedicated) {
printf("%s\n", str);
fprintf(stdout, "%s\n", str);
fflush(stdout);
IConsoleWriteToLogFile(str);
free(str); // free duplicated string since it's not used anymore
return;