From: curt Date: Thu, 13 May 1999 02:37:40 +0000 (+0000) Subject: Working on adding true coast lines with all non-land areas now becoming X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d9c1676c0c733e02ae85d54abb181465a4ffbf9;p=flightgear.git Working on adding true coast lines with all non-land areas now becoming ocean. --- diff --git a/Tools/Construct/Main/main.cxx b/Tools/Construct/Main/main.cxx index 27f5a4aaa..f59f67e32 100644 --- a/Tools/Construct/Main/main.cxx +++ b/Tools/Construct/Main/main.cxx @@ -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();