Skip to content

Commit

Permalink
- moved checks whether to draw the notify buffer out of the class int…
Browse files Browse the repository at this point in the history
…o the calling function.
  • Loading branch information
coelckers committed Oct 25, 2020
1 parent 194824f commit 840b845
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/console/c_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,6 @@ void FNotifyBuffer::Draw()
int line, lineadv, color, j;
bool canskip;

if (gamestate == GS_FULLCONSOLE || gamestate == GS_DEMOSCREEN)
return;

FFont* font = generic_ui ? NewSmallFont : AlternativeSmallFont;

line = Top + font->GetDisplacement();
Expand Down Expand Up @@ -832,7 +829,8 @@ void C_DrawConsole ()

oldbottom = ConBottom;

if (ConsoleState == c_up)
if (ConsoleState == c_up && gamestate != GS_INTRO && gamestate != GS_INTERMISSION &&
gamestate != GS_FULLCONSOLE && gamestate == GS_MENUSCREEN)
{
NotifyStrings.Draw();
return;
Expand Down

0 comments on commit 840b845

Please sign in to comment.