mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix console_enable_colors
not being used
This commit is contained in:
parent
8057d591db
commit
6760532491
|
@ -341,8 +341,8 @@ LOG_COLOR ColorToLogColor(ColorRGBA Color)
|
|||
void CConsole::Print(int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor) const
|
||||
{
|
||||
LEVEL LogLevel = IConsole::ToLogLevel(Level);
|
||||
// if the color is pure white, use default terminal color
|
||||
if(mem_comp(&PrintColor, &gs_ConsoleDefaultColor, sizeof(ColorRGBA)) != 0)
|
||||
// if console colors are not enabled or if the color is pure white, use default terminal color
|
||||
if(g_Config.m_ConsoleEnableColors && mem_comp(&PrintColor, &gs_ConsoleDefaultColor, sizeof(ColorRGBA)) != 0)
|
||||
{
|
||||
log_log_color(LogLevel, ColorToLogColor(PrintColor), pFrom, "%s", pStr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue