From 0d935bc6d62a576cb3d3e6c2aacc6ae16f25cc2d Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Tue, 29 Oct 2024 10:20:04 +1100 Subject: [PATCH] Minor tweaks --- src/hu_stuff.c | 2 +- src/m_menu.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index fde808d2d..d1fd044f1 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -545,7 +545,7 @@ static void HU_DrawHUD(void) int armor = MIN(viewplayer->armor, HUD_NUMBER_MAX); static bool healthanim; const bool gamepaused = (consoleactive || paused || freeze); - byte *tinttab = (health >= HUD_HEALTH_MIN || (health < HUD_HEALTH_MIN && healthanim) || health <= 0 + byte *tinttab = (health >= HUD_HEALTH_MIN || healthanim || health <= 0 || (viewplayer->cheats & CF_BUDDHA) || gamepaused ? tinttab80 : tinttab25); patch_t *patch = faces[st_faceindex]; const uint64_t currenttime = I_GetTimeMS(); diff --git a/src/m_menu.c b/src/m_menu.c index f6055e37e..4ac614dc7 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4363,8 +4363,7 @@ void M_Drawer(void) M_DrawPatchWithShadow(x - 26, yy, skullpatch, true); } - for (int i = 0; i < MAXSCREENAREA; i++) - tempscreen[i] = PINK; + memset(tempscreen, PINK, MAXSCREENAREA); for (int i = 0; i < max; i++) {