summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/english.txt1
-rw-r--r--namegen.c95
-rw-r--r--settings.c2
-rw-r--r--ttd.h1
4 files changed, 98 insertions, 1 deletions
diff --git a/lang/english.txt b/lang/english.txt
index 4ad0a2a2e..5e29e4a4a 100644
--- a/lang/english.txt
+++ b/lang/english.txt
@@ -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
diff --git a/namegen.c b/namegen.c
index 1692ff031..2fa8d5f93 100644
--- a/namegen.c
+++ b/namegen.c
@@ -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ál")
+MK("Ceská Lípa")
+MK("Ceské Budejovice")
+MK("Ceský Krumlov")
+MK("Decín")
+MK("Domazlice")
+MK("Dubí")
+MK("Frýdek-Místek")
+MK("Havlíckuv Brod")
+MK("Hodonín")
+MK("Hradec Králové")
+MK("Humpolec")
+MK("Cheb")
+MK("Chomutov")
+MK("Chrudim")
+MK("Jablonec nad Nisou")
+MK("Jeseník")
+MK("Jicín")
+MK("Jihlava")
+MK("Jindrichuv Hradec")
+MK("Karlovy Vary")
+MK("Karviná")
+MK("Kladno")
+MK("Klatovy")
+MK("Kolín")
+MK("Kosmonosy")
+MK("Kromeríz")
+MK("Kutná Hora")
+MK("Liberec")
+MK("Litomerice")
+MK("Louny")
+MK("Manetín")
+MK("Melník")
+MK("Mladá Boleslav")
+MK("Most")
+MK("Náchod")
+MK("Nový Jicín")
+MK("Nymburk")
+MK("Olomouc")
+MK("Opava")
+MK("Orácov")
+MK("Ostrava")
+MK("Pardubice")
+MK("Pelhrimov")
+MK("Polzice")
+MK("Písek")
+MK("Plzen")
+MK("Praha")
+MK("Prachatice")
+MK("Prerov")
+MK("Príbram")
+MK("Prostejov")
+MK("Rakovník")
+MK("Rokycany")
+MK("Rudná")
+MK("Rychnov nad Kneznou")
+MK("Semily")
+MK("Sokolov")
+MK("Strakonice")
+MK("Stredokluky")
+MK("Sumperk")
+MK("Svitavy")
+MK("Tábor")
+MK("Tachov")
+MK("Teplice")
+MK("Trebíc")
+MK("Trutnov")
+MK("Uherské Hradiste")
+MK("Ústí nad Labem")
+MK("Ústí nad Orlicí")
+MK("Vsetín")
+MK("Vyskov")
+MK("Zdár nad Sázavou")
+MK("Zlí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
diff --git a/settings.c b/settings.c
index 5035b89c7..42e3a38dd 100644
--- a/settings.c
+++ b/settings.c
@@ -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" },
diff --git a/ttd.h b/ttd.h
index d6656ee35..51052aa7c 100644
--- a/ttd.h
+++ b/ttd.h
@@ -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,