Age | Commit message (Collapse) | Author |
|
can replace an existing string. Also remove string length check on load which was a quickfix for some grfs.
|
|
|
|
space, why should it be blocked?
It is the wrong test at the wrong place
|
|
over newstations.
It grabbed everyting. Instead, we are now using ids for that purpose, 0xC9, oxD0, 0xDC (FS#304 by Osai)
- Protect newgrf text from entries of 1 char and fewer
- Protect currency name from an overrun of ids
Thanks to glx
|
|
- use a variable size array instead of another malloc()
|
|
textboxes to only
allow certain patterns (like numbers only)
|
|
working.
|
|
-Add 4 new langIDs (Afrikaans, greek, ukrainian,croatian)
-Only allocate memory when the string will be inserted
-In order to avoid the UTF-8 marker, compare based on length of defined iso_code (thanks peter1138)
-Synch with lang files iso_code cleanup
|
|
handling. So far, this is used for vehicles when no English or American translation is provided.
|
|
instead of just simple validation. We still perform
validation on any unhandled character.
|
|
less than 6 uses the old scheme, of 7 or more uses the new scheme. (Moving targets, yay...)
|
|
eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P
|
|
- Remove a define in favour of using the lengthof() an array.
- Fix typos in language names enum.
- Add Brazilian ISO code.
|
|
to new language IDs (value)
|
|
|
|
Some TODOs left, but the core is there.
Thanks to Peter1138 for code, advice and patience
And to Patchman for letting us define a lot of langids :)
|