mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Fixed message duplication in logs
- Any printed hud messages would have duplicate entries in logs.
This commit is contained in:
parent
3e2b0e4c71
commit
a418f564e9
2 changed files with 0 additions and 21 deletions
|
@ -1554,13 +1554,6 @@ void C_MidPrint (FFont *font, const char *msg)
|
||||||
AddToConsole (-1, bar1);
|
AddToConsole (-1, bar1);
|
||||||
AddToConsole (-1, msg);
|
AddToConsole (-1, msg);
|
||||||
AddToConsole (-1, bar3);
|
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,
|
StatusBar->AttachMessage (new DHUDMessage (font, msg, 1.5f, 0.375f, 0, 0,
|
||||||
(EColorRange)PrintColors[PRINTLEVELS], con_midtime), MAKE_ID('C','N','T','R'));
|
(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, bar2);
|
||||||
AddToConsole (-1, msg);
|
AddToConsole (-1, msg);
|
||||||
AddToConsole (-1, bar3);
|
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,
|
StatusBar->AttachMessage (new DHUDMessage (font, msg, 1.5f, 0.375f, 0, 0,
|
||||||
(EColorRange)PrintColors[PRINTLEVELS+1], con_midtime), MAKE_ID('C','N','T','R'));
|
(EColorRange)PrintColors[PRINTLEVELS+1], con_midtime), MAKE_ID('C','N','T','R'));
|
||||||
|
|
|
@ -7725,13 +7725,6 @@ scriptwait:
|
||||||
AddToConsole (-1, consolecolor);
|
AddToConsole (-1, consolecolor);
|
||||||
AddToConsole (-1, work);
|
AddToConsole (-1, work);
|
||||||
AddToConsole (-1, bar);
|
AddToConsole (-1, bar);
|
||||||
if (Logfile)
|
|
||||||
{
|
|
||||||
fputs (logbar, Logfile);
|
|
||||||
fputs (work, Logfile);
|
|
||||||
fputs (logbar, Logfile);
|
|
||||||
fflush (Logfile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue