# HG changeset patch # User bjarni # Date 1171728465 0 # Node ID 440f803862fbc1d34cbba2996c932b51938d0000 # Parent a9049be742ac10f13798ad45c27f6595947cd711 (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) diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp --- 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;