mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r19879) -Codechange: Also hide invalid engines from purchase lists.
This commit is contained in:
parent
9f15e28460
commit
557c3f7daa
@ -821,6 +821,8 @@ bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company)
|
||||
/* check if it's available */
|
||||
if (!HasBit(e->company_avail, company)) return false;
|
||||
|
||||
if (e->info.string_id == STR_NEWGRF_INVALID_ENGINE) return false;
|
||||
|
||||
if (type == VEH_TRAIN) {
|
||||
/* Check if the rail type is available to this company */
|
||||
const Company *c = Company::Get(company);
|
||||
|
Loading…
Reference in New Issue
Block a user