]> git.mxchange.org Git - flightgear.git/commitdiff
Changed priorety of the Default area.
authorcurt <curt>
Thu, 13 May 1999 02:37:56 +0000 (02:37 +0000)
committercurt <curt>
Thu, 13 May 1999 02:37:56 +0000 (02:37 +0000)
Tools/Lib/Polygon/names.cxx
Tools/Lib/Polygon/names.hxx

index ef80b7fdde1d65225a4666cfc66e66c8b949d50a..de0f29e45f4735507416ff483774d7dd7bb32260 100644 (file)
@@ -29,8 +29,8 @@
 
 // return area type from text name
 AreaType get_area_type( string area ) {
-    if ( area == "Default" ) {
-       return DefaultArea;
+    if ( area == "SomeSort" ) {
+       return SomeSortOfArea;
     } else if ( area == "AirportKeep" ) {
        return AirportKeepArea;
     } else if ( area == "AirportIgnore" ) {
@@ -60,6 +60,8 @@ AreaType get_area_type( string area ) {
        return CanalArea;
     } else if ( area == "Glacier" ) {
        return GlacierArea;
+    } else if ( area == "Default" ) {
+       return DefaultArea;
     } else if ( area == "Void Area" ) {
        return VoidArea;
     } else if ( area == "Null" ) {
index 9a28c265e4fdbb7a8caa719f421d782a9d678969..52f3bb7adba1610c0e11eb23eb730ee6f94642e2 100644 (file)
@@ -36,7 +36,7 @@ FG_USING_STD(string);
 // defines the priority of these shapes if they should intersect.  The
 // smaller the number, the higher the priority.
 enum AreaType {
-    DefaultArea       = 0,
+    SomeSortOfArea    = 0,
     AirportKeepArea   = 1,
     AirportIgnoreArea = 2,
     OceanArea         = 3,
@@ -49,6 +49,7 @@ enum AreaType {
     CanalArea         = 10,
     GlacierArea       = 11,
     MarshArea         = 12,
+    DefaultArea       = 13,
     VoidArea          = 9997,
     NullArea          = 9998,
     UnknownArea       = 9999