(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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user