From f731d7ffc410e5075ebf16d1129f4318d151f89a Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 17 Feb 2007 16:07:45 +0000 Subject: (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) --- src/build_vehicle_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index c695108a9..f8d802c33 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -695,11 +695,11 @@ static void GenerateBuildAircraftList(Window *w) 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; -- cgit v1.2.3-70-g09d2