forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user