1
0
Fork 0

Modified to incorporate new hole support of gpc.

This commit is contained in:
curt 1999-04-16 15:58:09 +00:00
parent 20228603ed
commit 16573d3cc5

View 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 );
}
}
}