diff --git a/src/console.c b/src/console.c index 04a9fdce4..9c7639725 100644 --- a/src/console.c +++ b/src/console.c @@ -1837,6 +1837,25 @@ static void CON_DrawConsole(void) // Console refresh drawer, call each frame // +static boolean CON_GamestateDrawHudLines(void) +{ + switch (gamestate) + { + case GS_LEVEL: + case GS_INTERMISSION: + case GS_VOTING: + case GS_CUTSCENE: + case GS_CREDITS: + case GS_EVALUATION: + case GS_WAITINGPLAYERS: + case GS_CEREMONY: + return true; + + default: + return false; + } +} + void CON_Drawer(void) { Lock_state(); @@ -1856,8 +1875,7 @@ void CON_Drawer(void) if (con_curlines > 0) CON_DrawConsole(); - else if (gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_CUTSCENE || gamestate == GS_CREDITS - || gamestate == GS_VOTING || gamestate == GS_EVALUATION || gamestate == GS_WAITINGPLAYERS) + else if (CON_GamestateDrawHudLines() == true) CON_DrawHudlines(); Unlock_state();