1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Add parameter to utf8_remove_formatting to allow colour codes (fixes #3638) (#3831)

This commit is contained in:
Alexander Overvoorde
2016-06-09 13:30:32 +02:00
committed by Ted John
parent 4b152bac88
commit ca1590c086
5 changed files with 7 additions and 8 deletions

View File

@@ -920,7 +920,7 @@ void Network::AppendChatLog(const utf8 *text)
strftime(buffer, sizeof(buffer), "[%Y/%m/%d %H:%M:%S] ", tmInfo);
String::Append(buffer, sizeof(buffer), text);
utf8_remove_formatting(buffer);
utf8_remove_formatting(buffer, false);
String::Append(buffer, sizeof(buffer), platform_get_new_line());
SDL_RWwrite(_chatLogStream, buffer, strlen(buffer), 1);