fix always gray percent / always red mismatch (#898)

Fixes #897
This commit is contained in:
Fabian Greffrath 2023-02-07 08:20:10 +01:00 committed by GitHub
parent 5e75b0faea
commit c8a479a1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,17 +213,17 @@ void STlib_updatePercent
// in automap overlay mode. // in automap overlay mode.
if (*per->n.on) // killough 2/21/98: fix percents not updated; if (*per->n.on) // killough 2/21/98: fix percents not updated;
{ {
if (!sts_always_red) // also support gray-only percents
V_DrawPatchTranslated V_DrawPatchTranslated
( (
per->n.x, per->n.x,
per->n.y, per->n.y,
FG, FG,
per->p, per->p,
sts_pct_always_gray ? cr_gray : outrng // [FG] fix always gray percent / always red mismatch
sts_pct_always_gray ? cr_gray :
sts_always_red ? cr_red :
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);
} }
STlib_updateNum(&per->n, outrng); STlib_updateNum(&per->n, outrng);