X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Fsimple.cxx;h=02d7025b8c62c8c1ecd45270efed823d63ad7528;hb=48e948d4bcd65cc8ccdfb23097ed9ea592e4226c;hp=356b8dcc20c42e6fec42c9024ae480a0c731afef;hpb=7345a044e028c6c0a843d7de96adfb4217422112;p=flightgear.git diff --git a/src/Airports/simple.cxx b/src/Airports/simple.cxx index 356b8dcc2..02d7025b8 100644 --- a/src/Airports/simple.cxx +++ b/src/Airports/simple.cxx @@ -249,13 +249,9 @@ FGAirport::HardSurfaceFilter::HardSurfaceFilter(double minLengthFt) : { } -bool FGAirport::HardSurfaceFilter::pass(FGPositioned* aPos) const +bool FGAirport::HardSurfaceFilter::passAirport(FGAirport* aApt) const { - if (aPos->type() != AIRPORT) { - return false; // exclude seaports and heliports as well, we need a runways - } - - return static_cast(aPos)->hasHardRunwayOfLengthFt(mMinLengthFt); + return aApt->hasHardRunwayOfLengthFt(mMinLengthFt); } FGAirport* FGAirport::findByIdent(const std::string& aIdent)