mirror of https://github.com/OpenTTD/OpenTTD
(svn r6213) -Fix: Calatan town names was only prefix OR the rest of the string, never both (nars)
parent
e079decb99
commit
459ce0a3f1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue