mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Use proper UTF-8 handling for formatting code detection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user