From 94855fbaaeee93b599f6953a072d3ed9728f91de Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 27 Feb 2025 19:38:11 +0100 Subject: [PATCH] color ping numbers for color hud --- src/hu_stuff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 58e7ad100..1e446b5be 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -2374,7 +2374,10 @@ Ping_gfx_color (int lag) static const UINT8 * Ping_gfx_colormap (UINT32 lag, boolean gentleman) { - const UINT8 *colormap = R_GetTranslationColormap(TC_RAINBOW, Ping_gfx_color(lag), GTC_CACHE); + UINT8 *colormap = NULL; + + if (K_UseColorHud()) + colormap = R_GetTranslationColormap(TC_RAINBOW, Ping_gfx_color(lag), GTC_CACHE); if (servermaxping && lag > servermaxping && hu_tick < 4) {