Describe the bug
On Linux, game_text will only use text after the last "/n".
Steps to reproduce
Steps to reproduce the behavior:
- Have a
game_text which uses "/n" in its message
- While running on Linux, display the text
- See error
Expected behavior
The game_text should replace all instances of "/n" with generic newlines, as is the case on Windows.
Additional context
This is most likely caused by Q_snprintf being used to concatenate a string onto itself at line 450 in maprules.cpp, found here. This method of formatting a string is already considered to be bad practice, and it's known to work on Windows while not working on Linux.
Describe the bug
On Linux,
game_textwill only use text after the last "/n".Steps to reproduce
Steps to reproduce the behavior:
game_textwhich uses "/n" in its messageExpected behavior
The
game_textshould replace all instances of "/n" with generic newlines, as is the case on Windows.Additional context
This is most likely caused by
Q_snprintfbeing used to concatenate a string onto itself at line 450 inmaprules.cpp, found here. This method of formatting a string is already considered to be bad practice, and it's known to work on Windows while not working on Linux.