}
virtual Type maxType() const {
- return SEAPORT;
+ return AIRPORT;
}
virtual bool passAirport(FGAirport* aApt) const {
virtual bool passAirport(FGAirport* aApt) const;
- virtual Type maxType() const {
- return AIRPORT;
- }
private:
double mMinLengthFt;
};
/**
* Syntactic wrapper around FGPositioned::findClosest - find the closest
* match for filter, and return it cast to FGAirport. The default filter
- * passes all airports, including seaports and heliports.
+ * passes airports, but not seaports or heliports
*/
static FGAirport* findClosest(const SGGeod& aPos, double aCuttofNm, Filter* filter = NULL);
virtual bool passAirport(FGAirport* aApt) const {
return aApt->getMetar();
}
+
+ // permit heliports and seaports too
+ virtual FGPositioned::Type maxType() const
+ { return FGPositioned::SEAPORT; }
};
static AirportWithMetar airportWithMetarFilter;