Skip to content

Commit

Permalink
Pause flashing health/ammo/keys in widescreen HUD when game paused
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 15, 2024
1 parent e38288c commit 7559f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ static void HU_DrawHUD(void)
viewplayer->negativehealth : viewplayer->health) + healthdiff, HUD_NUMBER_MAX);
int armor = MIN(viewplayer->armor, HUD_NUMBER_MAX);
static bool healthanim;
const bool gamepaused = (consoleactive || freeze);
const bool gamepaused = (consoleactive || paused || freeze);
byte *tinttab = (health >= HUD_HEALTH_MIN || (health < HUD_HEALTH_MIN && healthanim) || health <= 0
|| (viewplayer->cheats & CF_BUDDHA) || gamepaused ? tinttab80 : tinttab25);
patch_t *patch = faces[st_faceindex];
Expand Down Expand Up @@ -1392,7 +1392,7 @@ static void HU_DrawAltHUD(void)

if (viewplayer->neededcardflash)
{
const bool gamepaused = (consoleactive || freeze);
const bool gamepaused = (consoleactive || paused || freeze);
const card_t neededcard = viewplayer->neededcard;

if (neededcard == it_allkeys)
Expand Down

0 comments on commit 7559f92

Please sign in to comment.