mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-25 09:22:33 +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
|
||||
//
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue