(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);
|
const AircraftVehicleInfo *avi = AircraftVehInfo(eid);
|
||||||
switch (bv->filter.flags & ~AirportFTAClass::SHORT_STRIP /* we don't care about the length of the runway here */) {
|
switch (bv->filter.flags & ~AirportFTAClass::SHORT_STRIP /* we don't care about the length of the runway here */) {
|
||||||
case AirportFTAClass::HELICOPTERS:
|
case AirportFTAClass::HELICOPTERS:
|
||||||
if (avi->subtype != AIR_HELICOPTER) continue;
|
if (avi->subtype != AIR_HELI) continue;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AirportFTAClass::AIRPLANES:
|
case AirportFTAClass::AIRPLANES:
|
||||||
if (avi->subtype != AIR_AIRCRAFT) continue;
|
if (!(avi->subtype & AIR_CTOL)) continue;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AirportFTAClass::ALL: break;
|
case AirportFTAClass::ALL: break;
|
||||||
|
Reference in New Issue
Block a user