You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SETX[Y] in "str" are not ignored by SetFallbackFont. So whenever a string is passed that uses that the string "conversion" will not do what you expect it to do; it will fail or horribly mess up the string.
Reported version: 1.0.2 Operating system: Mac OS X
Can you possibly elaborate a bit how or where the other OS treat that? It seems that str is not referenced in any of the three SetFallbackFont routines...
Other OSes don't need it because for them the language ID/ISO code works just fine. For Mac OS X the actual string has to be processed.
There are plenty of places, where SETX[Y] is handled, that will show you how to handle those, e.g. in gfx.cpp. Furthermore it might be needed to ignore/remove the other OpenTTD specific characters from the strings as well.
Might want to ignore the text direction ({LRM} etc), string control code ({WEIGHT} etc), and special sprite ({LORRY} etc) characters as well. The {xyz} is how you input it in strgen; they are all translated to some unicode character. SCC_CONTROL_[START|END], SCC_SPRITE_[START|END] and IsTextDirectionChar() might be of use for this.
Rubidium opened the ticket and wrote:
Reported version: 1.0.2
Operating system: Mac OS X
This issue was imported from FlySpray: https://bugs.openttd.org/task/4001
The text was updated successfully, but these errors were encountered: