# HG changeset patch # User dominik # Date 1103044014 0 # Node ID e29098665100c74c7d27288ca2083a5104442348 # Parent 5b5f9ae5115f1ac8722f8b0eebcd177993ce25a2 (svn r1083) Fix: the console "script" command saves all output to the textfile, not only printf stuff (sign_de) diff -r 5b5f9ae5115f -r e29098665100 console.c --- a/console.c Tue Dec 14 16:53:38 2004 +0000 +++ b/console.c Tue Dec 14 17:06:54 2004 +0000 @@ -399,6 +399,12 @@ } free(_ex); + if (_iconsole_output_file != NULL) { + // if there is an console output file ... also print it there + fwrite(string, strlen(string), 1, _iconsole_output_file); + fwrite("\n", 1, 1, _iconsole_output_file); + } + if (_iconsole_win != NULL) SetWindowDirty(_iconsole_win); } @@ -414,12 +420,6 @@ va_end(va); IConsolePrint(color_code, buf); - - if (_iconsole_output_file != NULL) { - // if there is an console output file ... also print it there - fwrite(buf, len, 1, _iconsole_output_file); - fwrite("\n", 1, 1, _iconsole_output_file); - } } void IConsoleDebug(const char* string)