1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

(svn r125) Add: [ 1014684 ] Czech town names (supr)

This commit is contained in:
dominik
2004-08-23 21:40:01 +00:00
parent 74852c4652
commit 9d869aa314
4 changed files with 98 additions and 1 deletions

View File

@@ -830,6 +830,7 @@ STR_TOWNNAME_SWEDISH :Swedish
STR_TOWNNAME_DUTCH :Dutch
STR_TOWNNAME_FINNISH :Finnish
STR_TOWNNAME_POLISH :Polish
STR_TOWNNAME_CZECH :Czech
STR_TOWNNAME_SLOVAKISH :Slovakish
STR_TOWNNAME_HUNGARIAN :Hungarian
STR_TOWNNAME_AUSTRIAN :Austrian

View File

@@ -1691,6 +1691,100 @@ static byte MakePolishTownName(byte *buf, uint32 seed)
return 0;
}
#define NUM_CZECH_1 82
static const char czech_1[] =
MK("As")
MK("Benesov")
MK("Beroun")
MK("Bezdruzice")
MK("Blansko")
MK("Breclav")
MK("Brno")
MK("Brunt<EFBFBD>l")
MK("Cesk<EFBFBD> L<>pa")
MK("Cesk<EFBFBD> Budejovice")
MK("Cesk<EFBFBD> Krumlov")
MK("Dec<EFBFBD>n")
MK("Domazlice")
MK("Dub<EFBFBD>")
MK("Fr<EFBFBD>dek-M<>stek")
MK("Havl<EFBFBD>ckuv Brod")
MK("Hodon<EFBFBD>n")
MK("Hradec Kr<4B>lov<6F>")
MK("Humpolec")
MK("Cheb")
MK("Chomutov")
MK("Chrudim")
MK("Jablonec nad Nisou")
MK("Jesen<EFBFBD>k")
MK("Jic<EFBFBD>n")
MK("Jihlava")
MK("Jindrichuv Hradec")
MK("Karlovy Vary")
MK("Karvin<EFBFBD>")
MK("Kladno")
MK("Klatovy")
MK("Kol<EFBFBD>n")
MK("Kosmonosy")
MK("Kromer<EFBFBD>z")
MK("Kutn<EFBFBD> Hora")
MK("Liberec")
MK("Litomerice")
MK("Louny")
MK("Manet<EFBFBD>n")
MK("Meln<EFBFBD>k")
MK("Mlad<EFBFBD> Boleslav")
MK("Most")
MK("N<EFBFBD>chod")
MK("Nov<EFBFBD> Jic<69>n")
MK("Nymburk")
MK("Olomouc")
MK("Opava")
MK("Or<EFBFBD>cov")
MK("Ostrava")
MK("Pardubice")
MK("Pelhrimov")
MK("Polzice")
MK("P<EFBFBD>sek")
MK("Plzen")
MK("Praha")
MK("Prachatice")
MK("Prerov")
MK("Pr<EFBFBD>bram")
MK("Prostejov")
MK("Rakovn<EFBFBD>k")
MK("Rokycany")
MK("Rudn<EFBFBD>")
MK("Rychnov nad Kneznou")
MK("Semily")
MK("Sokolov")
MK("Strakonice")
MK("Stredokluky")
MK("Sumperk")
MK("Svitavy")
MK("T<EFBFBD>bor")
MK("Tachov")
MK("Teplice")
MK("Treb<EFBFBD>c")
MK("Trutnov")
MK("Uhersk<EFBFBD> Hradiste")
MK("<EFBFBD>st<EFBFBD> nad Labem")
MK("<EFBFBD>st<EFBFBD> nad Orlic<69>")
MK("Vset<EFBFBD>n")
MK("Vyskov")
MK("Zd<EFBFBD>r nad S<>zavou")
MK("Zl<EFBFBD>n")
MK("Znojmo")
;
static byte MakeCzechTownName(byte *buf, uint32 seed)
{
AppendPart(&buf, GETNUM(0, NUM_CZECH_1), czech_1);
return 0;
}
#define NUM_SLOVAKISH_1 87
static const char slovakish_1[] =
MK("Bratislava")
@@ -1978,6 +2072,7 @@ TownNameGenerator * const _town_name_generators[] = {
MakeDutchTownName,
MakeFinnishTownName,
MakePolishTownName,
MakeCzechTownName,
MakeSlovakishTownName,
MakeHungarianTownName,
MakeAustrianTownName

View File

@@ -781,7 +781,7 @@ static const SettingDesc gameopt_settings[] = {
{"diff_custom", SDT_INTLIST | SDT_UINT32 | (sizeof(GameDifficulty)/4) << 16, NULL, (void*)offsetof(GameOptions, diff) },
{"currency", SDT_UINT8 | SDT_ONEOFMANY, (void*)21, (void*)offsetof(GameOptions, currency), "GBP|USD|FF|DM|YEN|PT|FT|ZL|ATS|BEF|DKK|FIM|GRD|CHF|NLG|ITL|SEK|RUR|CZK|ISK|NOK|EUR" },
{"distances", SDT_UINT8 | SDT_ONEOFMANY, (void*)1, (void*)offsetof(GameOptions, kilometers), "imperial|metric" },
{"town_names", SDT_UINT8 | SDT_ONEOFMANY, (void*)0, (void*)offsetof(GameOptions, town_name), "english|french|german|american|latin|silly|swedish|dutch|finnish|polish|slovakish|hungarian" },
{"town_names", SDT_UINT8 | SDT_ONEOFMANY, (void*)0, (void*)offsetof(GameOptions, town_name), "english|french|german|american|latin|silly|swedish|dutch|finnish|polish|czech|slovakish|hungarian" },
{"landscape", SDT_UINT8 | SDT_ONEOFMANY, (void*)0, (void*)offsetof(GameOptions, landscape), "normal|hilly|desert|candy" },
{"autosave", SDT_UINT8 | SDT_ONEOFMANY, (void*)1, (void*)offsetof(GameOptions, autosave), "off|monthly|quarterly|half year|yearly" },
{"road_side", SDT_UINT8 | SDT_ONEOFMANY, (void*)1, (void*)offsetof(GameOptions, road_side), "left|right" },

1
ttd.h
View File

@@ -434,6 +434,7 @@ enum SpecialStrings {
SPECSTR_TOWNNAME_DUTCH,
SPECSTR_TOWNNAME_FINNISH,
SPECSTR_TOWNNAME_POLISH,
SPECSTR_TOWNNAME_CZECH,
SPECSTR_TOWNNAME_SLOVAKISH,
SPECSTR_TOWNNAME_HUNGARIAN,
SPECSTR_TOWNNAME_AUSTRIAN,