1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

(svn r9641) -Fix (r7182): namegen.cpp was not UTF-8, which caused artefacts in Finnish town names.

This commit is contained in:
rubidium
2007-04-15 22:30:26 +00:00
parent 071e466609
commit e17209b3cc

View File

@@ -283,7 +283,7 @@ static byte MakeFinnishTownName(char *buf, uint32 seed, const char *last)
if (SeedChance(0, 15, seed) >= 10) { if (SeedChance(0, 15, seed) >= 10) {
strecat(buf, name_finnish_real[SeedChance(2, lengthof(name_finnish_real), seed)], last); strecat(buf, name_finnish_real[SeedChance(2, lengthof(name_finnish_real), seed)], last);
} else if (SeedChance(0, 15, seed) >= 5) { } else if (SeedChance(0, 15, seed) >= 5) {
/* A two-part name by combining one of name_finnish_1 + "la"/"l<EFBFBD>" /* A two-part name by combining one of name_finnish_1 + "la"/"lä"
* The reason for not having the contents of name_finnish_{1,2} in the same table is * The reason for not having the contents of name_finnish_{1,2} in the same table is
* that the ones in name_finnish_2 are not good for this purpose. */ * that the ones in name_finnish_2 are not good for this purpose. */
uint sel = SeedChance( 0, lengthof(name_finnish_1), seed); uint sel = SeedChance( 0, lengthof(name_finnish_1), seed);
@@ -297,7 +297,7 @@ static byte MakeFinnishTownName(char *buf, uint32 seed, const char *last)
{ {
strecat(buf, "la", last); strecat(buf, "la", last);
} else { } else {
strecat(buf, "l<EFBFBD>", last); strecat(buf, "lä", last);
} }
} else { } else {
/* A two-part name by combining one of name_finnish_{1,2} + name_finnish_3. /* A two-part name by combining one of name_finnish_{1,2} + name_finnish_3.