From d64a4a17ff9a306e55d451190d96a46bccc29a38 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 9 Nov 2014 12:11:58 +0100 Subject: [PATCH] - fixed: PRINT_LOG no longer worked since replacing the console buffer. --- src/c_console.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c_console.cpp b/src/c_console.cpp index e7c7dc30b..9dcaa0820 100644 --- a/src/c_console.cpp +++ b/src/c_console.cpp @@ -561,6 +561,11 @@ int PrintString (int printlevel, const char *outline) maybedrawnow (false, false); } } + else if (Logfile != NULL) + { + fputs (outline, Logfile); + fflush (Logfile); + } return (int)strlen (outline); }