reset color range in the w_keys widgets

This commit is contained in:
Fabian Greffrath 2023-02-03 13:49:22 +01:00
parent 21aeefee24
commit 4be6a0de42

View File

@ -747,6 +747,9 @@ void HU_Start(void)
sprintf(hud_keysstr,"KEY ");
else
sprintf(hud_keysstr,"FRG ");
// [FG] reset color range
hud_keysstr[4] = '\x1b';
hud_keysstr[5] = '0'+CR_RED;
s = hud_keysstr;
while (*s)
HUlib_addCharToTextLine(&w_keys, *s++);
@ -1119,7 +1122,7 @@ static void HU_widget_build_keys (void)
int i, k;
char *s;
i = 4;
i = 6;
hud_keysstr[i] = '\0'; //jff 3/7/98 make sure deleted keys go away
if (!deathmatch)