]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaked the polygon type prioritization scheme just a bit.
authorcurt <curt>
Sat, 12 Jun 1999 14:13:01 +0000 (14:13 +0000)
committercurt <curt>
Sat, 12 Jun 1999 14:13:01 +0000 (14:13 +0000)
Fixed a bug (dumb test idea) that was throwing away ocean areas.

Tools/Construct/Clipper/clipper.cxx
Tools/Lib/Polygon/names.hxx

index fc8ae0f5b9b987d9ac7f62beeed4dd234f7dd647..6f51394dcc3f08dd74c8d722523e3bfe98500601 100644 (file)
@@ -135,9 +135,12 @@ bool FGClipper::load_polys(const string& path) {
     }
 
     int area = (int)poly_type;
-    if ( area == OceanArea ) {
-       // TEST - Ignore
-    } else if ( area < FG_MAX_AREA_TYPES ) {
+
+    // if ( area == OceanArea ) {
+    // TEST - Ignore
+    // } else 
+
+    if ( area < FG_MAX_AREA_TYPES ) {
        polys_in.polys[area].push_back(poly);
     } else {
        FG_LOG( FG_CLIPPER, FG_ALERT, "Polygon type out of range = " 
index 97071f5fdfb8038a38d9044ed674c9ccfba1f577..6c97c13ff2a9f496b259f45540e3da6d91826131 100644 (file)
@@ -47,10 +47,10 @@ enum AreaType {
     StreamArea        = 8,
     CanalArea         = 9,
     GlacierArea       = 10,
-    UrbanArea         = 11,
-    MarshArea         = 12,
-    DefaultArea       = 13,
-    OceanArea         = 14,
+    OceanArea         = 11,
+    UrbanArea         = 12,
+    MarshArea         = 13,
+    DefaultArea       = 14,
     VoidArea          = 9997,
     NullArea          = 9998,
     UnknownArea       = 9999