mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use proper UTF-8 handling for formatting code detection
This commit is contained in:
parent
5adb18528e
commit
417f78b3ea
|
@ -713,7 +713,7 @@ void platform_process_messages()
|
|||
break;
|
||||
|
||||
// Entering formatting characters is not allowed
|
||||
if (utf8_is_format_code((int)e.text.text[0]))
|
||||
if (utf8_is_format_code(utf8_get_next(e.text.text, NULL)))
|
||||
break;
|
||||
|
||||
utf8 *newText = e.text.text;
|
||||
|
|
Loading…
Reference in New Issue