Fix HUD showing in transition from Pause Menu to Main Menu

This commit is contained in:
Tyler Young 2023-01-15 16:35:59 -05:00
parent 9a90e1ac96
commit 9b66d23c0f
2 changed files with 2 additions and 2 deletions

View file

@ -1322,7 +1322,7 @@ void HUD_Weapon (void)
void HUD_Draw (void) { void HUD_Draw (void) {
if (key_dest == key_menu_pause || paused_hack == true) { if (key_dest == key_menu_pause || paused_hack == true || m_state == m_exit) {
return; return;
} }

View file

@ -1446,7 +1446,7 @@ Draw_Crosshair
extern qboolean paused_hack; extern qboolean paused_hack;
void SCR_DrawCrosshair (void) void SCR_DrawCrosshair (void)
{ {
if (cl.stats[STAT_HEALTH] < 20 || paused_hack == true) { if (cl.stats[STAT_HEALTH] < 20 || paused_hack == true || m_state == m_exit) {
return; return;
} }
#ifdef VITA #ifdef VITA