Mercurial > hg > openttd
changeset 6053:440f803862fb draft
(svn r8783) -Fix r8771: aircraft vehicle subtype and aircraft engine subtype aren't the same (even though they both tell if it's a plane or helicopter)
author | bjarni <bjarni@openttd.org> |
---|---|
date | Sat, 17 Feb 2007 16:07:45 +0000 |
parents | a9049be742ac |
children | 2822a4a9c4f7 |
files | src/build_vehicle_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -695,11 +695,11 @@ const AircraftVehicleInfo *avi = AircraftVehInfo(eid); switch (bv->filter.flags & ~AirportFTAClass::SHORT_STRIP /* we don't care about the length of the runway here */) { case AirportFTAClass::HELICOPTERS: - if (avi->subtype != AIR_HELICOPTER) continue; + if (avi->subtype != AIR_HELI) continue; break; case AirportFTAClass::AIRPLANES: - if (avi->subtype != AIR_AIRCRAFT) continue; + if (!(avi->subtype & AIR_CTOL)) continue; break; case AirportFTAClass::ALL: break;