mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix user being able to enter formatting characters (fixes #2892)
This commit is contained in:
parent
2077c51e0b
commit
5adb18528e
|
@ -712,6 +712,10 @@ void platform_process_messages()
|
|||
if (e.text.text[0] == '`' && gConsoleOpen)
|
||||
break;
|
||||
|
||||
// Entering formatting characters is not allowed
|
||||
if (utf8_is_format_code((int)e.text.text[0]))
|
||||
break;
|
||||
|
||||
utf8 *newText = e.text.text;
|
||||
int newTextLength = strlen(newText);
|
||||
|
||||
|
|
Loading…
Reference in New Issue