]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed bug in output format generated.
authorcurt <curt>
Mon, 1 Mar 1999 15:35:26 +0000 (15:35 +0000)
committercurt <curt>
Mon, 1 Mar 1999 15:35:26 +0000 (15:35 +0000)
GenAirports/main.cxx

index 77b9607c3dcb7154e5abc8747b9fd924b2b8c5c2..5ef5042344a83769d48e7b218616359109b889ca 100644 (file)
@@ -73,13 +73,20 @@ void write_airport( int p_index, list_container hull_list, FGBucket b,
         exit(-1);
     }
 
+    // polygon type
     if ( cut_and_keep ) {
        fprintf( fd, "AirportKeep\n" );
     } else {
        fprintf( fd, "AirportIgnore\n" );
     }
+
+    // number of contours
+    fprintf( fd, "1\n" );
+
+    // size of first contour
     fprintf( fd, "%d\n", hull_list.size() );
-    // write perimeter polygon
+
+    // write contour (polygon) points
     list_iterator current = hull_list.begin();
     list_iterator last = hull_list.end();
     for ( ; current != last ; ++current ) {
@@ -337,6 +344,9 @@ int main( int argc, char **argv ) {
 
 
 // $Log$
+// Revision 1.8  1999/03/01 15:35:26  curt
+// Fixed bug in output format generated.
+//
 // Revision 1.7  1999/02/25 21:32:49  curt
 // Modified to adhere to new polygon naming convention, and also to read the
 // new Robin Peel aiport format.