return type() == HELIPORT;
}
+bool FGAirport::isAirportType(FGPositioned* pos)
+{
+ if (!pos) {
+ return false;
+ }
+
+ return (pos->type() >= AIRPORT) && (pos->type() <= SEAPORT);
+}
+
FGAirportDynamics * FGAirport::getDynamics()
{
if (_dynamics) {
void FGAirport::loadSceneryDefinitions() const
{
- // allow users to disable the scenery data in the short-term
- // longer term, this option can probably disappear
- if (!fgGetBool("/sim/paths/use-custom-scenery-data")) {
- return;
- }
-
SGPath path;
SGPropertyNode_ptr rootNode = new SGPropertyNode;
if (XMLLoader::findAirportData(ident(), "threshold", path)) {