Strip colour codes when writing debug msgs to terminal.

This commit is contained in:
Jonathan G Rennison
2016-02-16 19:52:41 +00:00
parent 199c04fb44
commit ead72b7753

View File

@@ -168,6 +168,8 @@ static void debug_print(const char *dbg, const char *buf)
char buffer[512];
seprintf(buffer, lastof(buffer), "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf);
str_strip_colours(buffer);
/* do not write desync messages to the console on Windows platforms, as they do
* not seem able to handle text direction change characters in a console without
* crashing, and NetworkTextMessage includes these */