(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)
authorbjarni
Sat, 17 Feb 2007 16:07:45 +0000
changeset 6053 201033223e21
parent 6052 ed3d260a32bc
child 6054 e42d8064c845
(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
--- a/src/build_vehicle_gui.cpp	Sat Feb 17 15:59:33 2007 +0000
+++ b/src/build_vehicle_gui.cpp	Sat Feb 17 16:07:45 2007 +0000
@@ -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;