diff options
author | PeterN <peter@fuzzle.org> | 2019-03-31 02:05:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 02:05:23 +0100 |
commit | 6d1cc142c2390b3466a91de19d16e55bf1ee19f8 (patch) | |
tree | 48913eef7c9ccad20b4aa58c210f189f83f64d22 /src/rail.h | |
parent | e1069eee05b648a64ff5dac3dd5701b01cfa2034 (diff) | |
download | openttd-6d1cc142c2390b3466a91de19d16e55bf1ee19f8.tar.xz |
Change: Shorten engine rail type drop down in autoreplace window. (#7448)
In the autoreplace window, the rail type drop down is for choosing engines
of the given time. Many rail types do not have engines specifically designed for them,
and are merely compatible with other rail types. This list is thus unwieldy and many
options have no engines available.
As this drop down is for choosing _engine_ rail type rather than compatible rail types,
we can list just the rail types explicitly listed by engines.
Diffstat (limited to 'src/rail.h')
-rw-r--r-- | src/rail.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail.h b/src/rail.h index b08f0650a..004593ce7 100644 --- a/src/rail.h +++ b/src/rail.h @@ -455,7 +455,8 @@ bool ValParamRailtype(const RailType rail); RailTypes AddDateIntroducedRailTypes(RailTypes current, Date date); RailType GetBestRailtype(const CompanyID company); -RailTypes GetCompanyRailtypes(const CompanyID c); +RailTypes GetCompanyRailtypes(CompanyID company, bool introduces = true); +RailTypes GetRailTypes(bool introduces); RailType GetRailTypeByLabel(RailTypeLabel label, bool allow_alternate_labels = true); |