1
0
Fork 0

(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)

release/0.6
bjarni 2007-02-17 16:07:45 +00:00
parent ea8eb50c0e
commit f731d7ffc4
1 changed files with 2 additions and 2 deletions

View File

@ -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;