Changeset - r7031:2fd9f058743b
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-06-23 14:40:19
truelight@openttd.org
(svn r10295) -Fix [FS#775]: flush stdout on dedicated server output to ensure an update of stdout (Zuu)
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -388,7 +388,8 @@ void IConsolePrint(uint16 color_code, co
 
	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;
0 comments (0 inline, 0 general)