]> git.mxchange.org Git - flightgear.git/commitdiff
Working on adding true coast lines with all non-land areas now becoming
authorcurt <curt>
Thu, 13 May 1999 02:37:40 +0000 (02:37 +0000)
committercurt <curt>
Thu, 13 May 1999 02:37:40 +0000 (02:37 +0000)
  ocean.

Tools/Construct/Main/main.cxx

index 27f5a4aaa8a0d909267451cd45cae0a9bc031467..f59f67e328953b368ebfc07b6bdaf31b647d52d8 100644 (file)
@@ -85,13 +85,14 @@ int load_polys( FGConstruct& c ) {
     FGClipper clipper;
 
     string base = c.get_bucket().gen_base_path();
+    string poly_path;
     int result;
 
     // initialize clipper
     clipper.init();
 
     // load airports
-    string poly_path = c.get_work_base() + ".apt" + "/Scenery/" + base;
+    poly_path = c.get_work_base() + ".apt" + "/Scenery/" + base;
     cout << "poly_path = " << poly_path << endl;
     result = actual_load_polys( poly_path, c, clipper );
     cout << "  loaded " << result << " polys" << endl;
@@ -102,6 +103,12 @@ int load_polys( FGConstruct& c ) {
     result = actual_load_polys( poly_path, c, clipper );
     cout << "  loaded " << result << " polys" << endl;
 
+    // load land masses
+    poly_path = c.get_work_base() + ".states" + "/Scenery/" + base;
+    cout << "poly_path = " << poly_path << endl;
+    result = actual_load_polys( poly_path, c, clipper );
+    cout << "  loaded " << result << " polys" << endl;
+
     point2d min, max;
     min.x = c.get_bucket().get_center_lon() - 0.5 * c.get_bucket().get_width();
     min.y = c.get_bucket().get_center_lat() - 0.5 * c.get_bucket().get_height();