Changeset - r28450:4716b733c2f9
[Not reviewed]
master
0 1 0
Loïc Guilloux - 9 months ago 2024-01-14 21:49:42
glx22@users.noreply.github.com
Fix: Don't replace stripped characters with '?' in console (#11777)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -103,13 +103,13 @@ void IConsolePrint(TextColour colour_cod
 
		NetworkServerSendAdminRcon(_redirect_console_to_admin, colour_code, string);
 
		return;
 
	}
 

	
 
	/* Create a copy of the string, strip it of colours and invalid
 
	 * characters and (when applicable) assign it to the console buffer */
 
	std::string str = StrMakeValid(string);
 
	std::string str = StrMakeValid(string, SVS_NONE);
 

	
 
	if (_network_dedicated) {
 
		NetworkAdminConsole("console", str);
 
		fmt::print("{}{}\n", GetLogPrefix(), str);
 
		fflush(stdout);
 
		IConsoleWriteToLogFile(str);
0 comments (0 inline, 0 general)