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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user