diff options
author | rubidium <rubidium@openttd.org> | 2011-01-18 21:30:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-18 21:30:59 +0000 |
commit | b8c9988d9fce02a3bfb958b0ebc7cf39961ef10c (patch) | |
tree | 6ace877720369defc6a552ea53b731d8bd42c982 /src/toolbar_gui.cpp | |
parent | 6371b75bcc0789d4895e5c157237cbeaf332a99a (diff) | |
download | openttd-b8c9988d9fce02a3bfb958b0ebc7cf39961ef10c.tar.xz |
(svn r21842) -Feature [FS#4393]: [NewGRF] Introduction dates/required types for rail types; e.g. introduce a particular rail type in 1960 (or when a vehicle using it is introduced), but also allow limiting its introduction to only happen when the required railtypes are available
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index a93568969..90e107550 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -703,6 +703,9 @@ static CallBackFunction ToolbarBuildRailClick(Window *w) used_railtypes |= GetRailTypeInfo(e->u.rail.railtype)->introduces_railtypes; } + /* Get the date introduced railtypes as well. */ + used_railtypes = AddDateIntroducedRailTypes(used_railtypes, MAX_DAY); + const Company *c = Company::Get(_local_company); DropDownList *list = new DropDownList(); for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) { |