forked from mirror/OpenTTD
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
This commit is contained in:
@@ -480,13 +480,15 @@ static byte MakeCzechTownName(char *buf, uint32 seed, const char *last)
|
||||
|
||||
strecat(buf, name_czech_adj[prefix].name, last);
|
||||
endpos = strlen(buf) - 1;
|
||||
/* Find the first character in a UTF-8 sequence */
|
||||
while (GB(buf[endpos], 6, 2) == 2) endpos--;
|
||||
if (gender == CZG_SMASC && pattern == CZP_PRIVL) {
|
||||
/* -ovX -> -uv */
|
||||
buf[endpos - 2] = 'u';
|
||||
assert(buf[endpos - 1] == 'v');
|
||||
buf[endpos] = '\0';
|
||||
} else {
|
||||
buf[endpos] = name_czech_patmod[gender][pattern];
|
||||
strecpy(buf + endpos, name_czech_patmod[gender][pattern], last);
|
||||
}
|
||||
|
||||
strecat(buf, " ", last);
|
||||
|
Reference in New Issue
Block a user