- moved checks whether to draw the notify buffer out of the class into the calling function.

This commit is contained in:
Christoph Oelckers 2020-10-25 09:26:07 +01:00
parent 194824f810
commit 840b8451bd

View file

@ -748,9 +748,6 @@ void FNotifyBuffer::Draw()
int line, lineadv, color, j; int line, lineadv, color, j;
bool canskip; bool canskip;
if (gamestate == GS_FULLCONSOLE || gamestate == GS_DEMOSCREEN)
return;
FFont* font = generic_ui ? NewSmallFont : AlternativeSmallFont; FFont* font = generic_ui ? NewSmallFont : AlternativeSmallFont;
line = Top + font->GetDisplacement(); line = Top + font->GetDisplacement();
@ -832,7 +829,8 @@ void C_DrawConsole ()
oldbottom = ConBottom; oldbottom = ConBottom;
if (ConsoleState == c_up) if (ConsoleState == c_up && gamestate != GS_INTRO && gamestate != GS_INTERMISSION &&
gamestate != GS_FULLCONSOLE && gamestate == GS_MENUSCREEN)
{ {
NotifyStrings.Draw(); NotifyStrings.Draw();
return; return;