diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 1142fd637..faa46ae37 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -2350,7 +2350,7 @@ Ping_gfx_num (int lag) } static int -Ping_gfx_color (int lag) +Ping_gfx_color (UINT32 lag) { if (lag < 2) return SKINCOLOR_JAWZ; @@ -2360,8 +2360,17 @@ Ping_gfx_color (int lag) return SKINCOLOR_GOLD; else if (lag < 10) return SKINCOLOR_RED; + else if (lag < servermaxping) + { + if (hu_tick & 2) + return SKINCOLOR_GREEN; + else if (hu_tick & 4) + return SKINCOLOR_YELLOW; + else + return SKINCOLOR_BLUEBERRY; + } else - return SKINCOLOR_WHITE; // SKINCOLOR_MAGENTA + return SKINCOLOR_WHITE; // to make the flashing work } static const UINT8 *