From 4e767513720cb4785bb9b49c298265d4d41b3a66 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 25 Jan 2025 21:36:06 +0100 Subject: [PATCH] make ping flash somewhat like vanilla again --- src/hu_stuff.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index c5cf89ca5..dcf3d1dc3 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -2366,9 +2366,9 @@ Ping_gfx_color (int lag) else if (lag <= 7) return SKINCOLOR_GOLD; else if (lag <= 10) - return SKINCOLOR_RASPBERRY; + return SKINCOLOR_RED; else - return SKINCOLOR_MOONSLAM; // SKINCOLOR_MAGENTA + return SKINCOLOR_WHITE; // SKINCOLOR_MAGENTA } static const UINT8 * @@ -2376,16 +2376,15 @@ Ping_gfx_colormap (UINT32 lag, boolean gentleman) { const UINT8 *colormap = R_GetTranslationColormap(TC_RAINBOW, Ping_gfx_color(lag), GTC_CACHE); - if (gentleman) - { - colormap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_PASTEL, GTC_CACHE); - } - if (servermaxping && lag > servermaxping && hu_tick < 4) { // flash ping red if too high colormap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_RASPBERRY, GTC_CACHE); } + else if (gentleman) + { + colormap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_PASTEL, GTC_CACHE); + } return colormap; }