mirror of https://github.com/OpenTTD/OpenTTD
parent
df673e9b2c
commit
e93630541d
|
@ -100,6 +100,7 @@ AirportSpec AirportSpec::specs[NUM_AIRPORTS]; ///< Airport specifications.
|
||||||
assert(type < lengthof(AirportSpec::specs));
|
assert(type < lengthof(AirportSpec::specs));
|
||||||
const AirportSpec *as = &AirportSpec::specs[type];
|
const AirportSpec *as = &AirportSpec::specs[type];
|
||||||
if (type >= NEW_AIRPORT_OFFSET && !as->enabled) {
|
if (type >= NEW_AIRPORT_OFFSET && !as->enabled) {
|
||||||
|
if (_airport_mngr.GetGRFID(type) == 0) return as;
|
||||||
byte subst_id = _airport_mngr.GetSubstituteID(type);
|
byte subst_id = _airport_mngr.GetSubstituteID(type);
|
||||||
if (subst_id == AT_INVALID) return as;
|
if (subst_id == AT_INVALID) return as;
|
||||||
as = &AirportSpec::specs[subst_id];
|
as = &AirportSpec::specs[subst_id];
|
||||||
|
|
Loading…
Reference in New Issue