]> git.mxchange.org Git - flightgear.git/commitdiff
Modified to incorporate new hole support of gpc.
authorcurt <curt>
Fri, 16 Apr 1999 15:58:09 +0000 (15:58 +0000)
committercurt <curt>
Fri, 16 Apr 1999 15:58:09 +0000 (15:58 +0000)
Tools/Prep/GenAirports/main.cxx

index 9296233c41d6483ecdb0bf48605753a8ff160bf0..978a152d6e62235bc2257086efe2c25803f89db0 100644 (file)
@@ -85,6 +85,9 @@ void write_airport( long int p_index, list_container hull_list, FGBucket b,
     // size of first contour
     fprintf( fd, "%d\n", hull_list.size() );
 
+    // hole flag
+    fprintf( fd, "%d\n", 0 );  // not a hole
+
     // write contour (polygon) points
     list_iterator current = hull_list.begin();
     list_iterator last = hull_list.end();
@@ -129,6 +132,11 @@ void process_airport( string airport, list < string > & runway_list,
     cout << "  name = " << apt_name << endl;
     */
 
+    // Ignore any seaplane bases
+    if ( apt_type == "S" ) {
+       return;
+    }
+
     // parse runways and generate the vertex list
     string rwy_str;
     double lon, lat, hdg;
@@ -251,7 +259,7 @@ void process_airport( string airport, list < string > & runway_list,
                if ( b_cur == b ) {
                    write_airport( index, hull_list, b_cur, root, true );
                } else {
-                   write_airport( index, hull_list, b_cur, root, false );
+                   write_airport( index, hull_list, b_cur, root, true );
                }
            }
        }