From: curt Date: Fri, 16 Apr 1999 15:58:09 +0000 (+0000) Subject: Modified to incorporate new hole support of gpc. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=16573d3cc55a2ccf54d924d2bbf6c40ecef83339;p=flightgear.git Modified to incorporate new hole support of gpc. --- diff --git a/Tools/Prep/GenAirports/main.cxx b/Tools/Prep/GenAirports/main.cxx index 9296233c4..978a152d6 100644 --- a/Tools/Prep/GenAirports/main.cxx +++ b/Tools/Prep/GenAirports/main.cxx @@ -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 ); } } }