mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
CON_GamestateDrawHudLines
This commit is contained in:
parent
4011c8b2fa
commit
6f0b09fecd
1 changed files with 20 additions and 2 deletions
|
|
@ -1837,6 +1837,25 @@ static void CON_DrawConsole(void)
|
||||||
|
|
||||||
// Console refresh drawer, call each frame
|
// 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)
|
void CON_Drawer(void)
|
||||||
{
|
{
|
||||||
Lock_state();
|
Lock_state();
|
||||||
|
|
@ -1856,8 +1875,7 @@ void CON_Drawer(void)
|
||||||
|
|
||||||
if (con_curlines > 0)
|
if (con_curlines > 0)
|
||||||
CON_DrawConsole();
|
CON_DrawConsole();
|
||||||
else if (gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_CUTSCENE || gamestate == GS_CREDITS
|
else if (CON_GamestateDrawHudLines() == true)
|
||||||
|| gamestate == GS_VOTING || gamestate == GS_EVALUATION || gamestate == GS_WAITINGPLAYERS)
|
|
||||||
CON_DrawHudlines();
|
CON_DrawHudlines();
|
||||||
|
|
||||||
Unlock_state();
|
Unlock_state();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue