]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/simple.cxx
Expose more things to Nasal for FMSs in particular - still work in progress.
[flightgear.git] / src / Airports / simple.cxx
index 33fd4ec7a80b37c87728b60b3e7c36589dc760e2..1cf962607748d7ae775b7225645e6a7ead48c14c 100644 (file)
@@ -96,6 +96,15 @@ bool FGAirport::isHeliport() const
   return type() == HELIPORT;
 }
 
+bool FGAirport::isAirportType(FGPositioned* pos)
+{
+    if (!pos) {
+        return false;
+    }
+    
+    return (pos->type() >= AIRPORT) && (pos->type() <= SEAPORT);
+}
+
 FGAirportDynamics * FGAirport::getDynamics()
 {
     if (_dynamics) {