From a418f564e98eccfbff70f29156ee61ac7d72304a Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Fri, 28 Nov 2014 16:34:42 +1300 Subject: [PATCH] Fixed message duplication in logs - Any printed hud messages would have duplicate entries in logs. --- src/c_console.cpp | 14 -------------- src/p_acs.cpp | 7 ------- 2 files changed, 21 deletions(-) diff --git a/src/c_console.cpp b/src/c_console.cpp index c6fe58749..e3e3d98fe 100644 --- a/src/c_console.cpp +++ b/src/c_console.cpp @@ -1554,13 +1554,6 @@ void C_MidPrint (FFont *font, const char *msg) AddToConsole (-1, bar1); AddToConsole (-1, msg); AddToConsole (-1, bar3); - if (Logfile) - { - fputs (logbar, Logfile); - fputs (msg, Logfile); - fputs (logbar, Logfile); - fflush (Logfile); - } StatusBar->AttachMessage (new DHUDMessage (font, msg, 1.5f, 0.375f, 0, 0, (EColorRange)PrintColors[PRINTLEVELS], con_midtime), MAKE_ID('C','N','T','R')); @@ -1578,13 +1571,6 @@ void C_MidPrintBold (FFont *font, const char *msg) AddToConsole (-1, bar2); AddToConsole (-1, msg); AddToConsole (-1, bar3); - if (Logfile) - { - fputs (logbar, Logfile); - fputs (msg, Logfile); - fputs (logbar, Logfile); - fflush (Logfile); - } StatusBar->AttachMessage (new DHUDMessage (font, msg, 1.5f, 0.375f, 0, 0, (EColorRange)PrintColors[PRINTLEVELS+1], con_midtime), MAKE_ID('C','N','T','R')); diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 2ff70c9e3..866087688 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -7725,13 +7725,6 @@ scriptwait: AddToConsole (-1, consolecolor); AddToConsole (-1, work); AddToConsole (-1, bar); - if (Logfile) - { - fputs (logbar, Logfile); - fputs (work, Logfile); - fputs (logbar, Logfile); - fflush (Logfile); - } } } }