- fixed text color setup for added console message.

This commit is contained in:
Christoph Oelckers 2019-05-22 10:17:49 +02:00 committed by drfrag
parent 14981adb6a
commit 75f5318b00

View file

@ -115,7 +115,7 @@ void FConsoleBuffer::AddText(int printlevel, const char *text, FILE *logfile)
if (printlevel >= 0 && printlevel != PRINT_HIGH)
{
if (printlevel == 200) build = TEXTCOLOR_GREEN;
else if (printlevel < PRINTLEVELS) build.Format("%c%c", TEXTCOLOR_ESCAPE, PrintColors[printlevel]);
else if (printlevel < PRINTLEVELS) build.Format("%c%c", TEXTCOLOR_ESCAPE, PrintColors[printlevel]+'A');
}
size_t textsize = strlen(text);