- fixed bad color range check in ACS HudMessage code.

This commit is contained in:
Christoph Oelckers 2022-04-14 14:04:26 +02:00
parent d0e1aea273
commit 9c5b284d72
1 changed files with 1 additions and 1 deletions

View File

@ -8757,7 +8757,7 @@ scriptwait:
(type & HUDMSG_LAYER_MASK) >> HUDMSG_LAYER_SHIFT);
if (type & HUDMSG_LOG)
{
int consolecolor = color >= CR_BRICK && color <= CR_YELLOW ? color + 'A' : '-';
int consolecolor = color >= CR_BRICK && color < NUM_TEXT_COLORS && color != CR_UNTRANSLATED ? color + 'A' : '-';
Printf(PRINT_NONOTIFY, "\n" TEXTCOLOR_ESCAPESTR "%c%s\n%s\n%s\n", consolecolor, console_bar, work.GetChars(), console_bar);
}
}