[Logger] Only filter out coloured strings were needed (#450)
This commit is contained in:
parent
28653a0e8d
commit
0a6d0e1b5d
@ -28,7 +28,7 @@ namespace Components
|
||||
{
|
||||
std::string out = msg;
|
||||
|
||||
// Filter out coloured strings
|
||||
// Filter out coloured strings for stdout
|
||||
if (out[0] == '^' && out[1] != '\0')
|
||||
{
|
||||
out = out.substr(2);
|
||||
@ -48,11 +48,11 @@ namespace Components
|
||||
|
||||
if (!Game::Sys_IsMainThread())
|
||||
{
|
||||
Logger::EnqueueMessage(out);
|
||||
Logger::EnqueueMessage(msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
Game::Com_PrintMessage(channel, out.data(), 0);
|
||||
Game::Com_PrintMessage(channel, msg.data(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user