1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 08:59:09 +00:00

(svn r6213) -Fix: Calatan town names was only prefix OR the rest of the string, never both (nars)

This commit is contained in:
bjarni
2006-08-29 14:45:39 +00:00
parent e079decb99
commit 459ce0a3f1

View File

@@ -700,10 +700,11 @@ static byte MakeCatalanTownName(char *buf, uint32 seed) {
strcat(buf, name_catalan_real[SeedModChance(4, lengthof(name_catalan_real), seed)]);
} else {
uint i;
if (SeedModChance(0, 2, seed) == 0) { // prefix
strcat(buf, name_catalan_pref[SeedModChance(11, lengthof(name_catalan_pref), seed)]);
}
else {
i = SeedChance(0, 2, seed);
if (i == 0) { // masculine form
strcat(buf, name_catalan_1m[SeedModChance(4, lengthof(name_catalan_1m), seed)]);
@@ -722,7 +723,6 @@ static byte MakeCatalanTownName(char *buf, uint32 seed) {
}
}
}
}
return 0;
}