From c8a479a1aa9bfbf74f5da64c64173e06a3fbfe7f Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Tue, 7 Feb 2023 08:20:10 +0100 Subject: [PATCH] fix always gray percent / always red mismatch (#898) Fixes #897 --- src/st_lib.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/st_lib.c b/src/st_lib.c index 865a5eae..34c2fa9d 100644 --- a/src/st_lib.c +++ b/src/st_lib.c @@ -213,17 +213,17 @@ void STlib_updatePercent // in automap overlay mode. if (*per->n.on) // killough 2/21/98: fix percents not updated; { - if (!sts_always_red) // also support gray-only percents - V_DrawPatchTranslated - ( - per->n.x, - per->n.y, - FG, - per->p, - sts_pct_always_gray ? cr_gray : outrng - ); - else //jff 2/18/98 allow use of faster draw routine from config - V_DrawPatch(per->n.x, per->n.y, FG, per->p); + V_DrawPatchTranslated + ( + per->n.x, + per->n.y, + FG, + per->p, + // [FG] fix always gray percent / always red mismatch + sts_pct_always_gray ? cr_gray : + sts_always_red ? cr_red : + outrng + ); } STlib_updateNum(&per->n, outrng);