Skip to content

Commit

Permalink
- fixed text color setup for added console message.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 22, 2019
1 parent 8a90946 commit 4d2a793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c_consolebuffer.cpp
Expand Up @@ -88,7 +88,7 @@ void FConsoleBuffer::AddText(int printlevel, const char *text)
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);
Expand Down

0 comments on commit 4d2a793

Please sign in to comment.