1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-23 05:02:45 +01:00

Cleanup: remove str_strip_colours; StrMakeValid also removes the colours

Essentially str_strip_colours followed by StrMakeValid makes the calling of
str_strip_colours useless, as StrMakeValid would have removed them too.
This commit is contained in:
Rubidium
2023-06-08 17:05:57 +02:00
committed by rubidium42
parent 35ef6c1723
commit e762855201
3 changed files with 0 additions and 25 deletions

View File

@@ -107,7 +107,6 @@ void IConsolePrint(TextColour colour_code, const std::string &string)
/* Create a copy of the string, strip if of colours and invalid
* characters and (when applicable) assign it to the console buffer */
char *str = stredup(string.c_str());
str_strip_colours(str);
StrMakeValidInPlace(str);
if (_network_dedicated) {