mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- fixed bad color range check in ACS HudMessage code.
This commit is contained in:
parent
d0e1aea273
commit
9c5b284d72
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue