From 30de6cb81a182f442c9b3f10c749f400204f9ee8 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 30 Nov 2003 22:03:06 +0000 Subject: [PATCH] Get a little smarter about guessing what's an apron: Before: - if it's a concrete taxiway over 150 ft wide, assume it's an apron (confusingly called "tiedown") After: - if it's an asphalt or concrete taxiway over 150 ft wide, *or* if it has no blue taxiway lights, assume it's an apron --- src/Airports/GenAirports/build.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Airports/GenAirports/build.cxx b/src/Airports/GenAirports/build.cxx index d72a5f61..a30d9ea0 100644 --- a/src/Airports/GenAirports/build.cxx +++ b/src/Airports/GenAirports/build.cxx @@ -237,6 +237,7 @@ static void build_runway( const TGRunway& rwy_info, { SG_LOG(SG_GENERAL, SG_DEBUG, "surface flags = " << rwy_info.surface_flags); string surface_flag = rwy_info.surface_flags.substr(1, 1); + string light_flag = rwy_info.surface_flags.substr(2, 1); SG_LOG(SG_GENERAL, SG_DEBUG, "surface flag = " << surface_flag); string material; @@ -244,17 +245,19 @@ static void build_runway( const TGRunway& rwy_info, if ( !rwy_info.really_taxiway ) { material = "pa_"; // asphalt } else { - material = "pa_taxiway"; + if ( rwy_info.width <= 150 && light_flag == "B" ) + material = "pa_taxiway"; + else + material = "pa_tiedown"; } } else if ( surface_flag == "C" ) { if ( !rwy_info.really_taxiway ) { material = "pc_"; // concrete } else { - if ( rwy_info.width <= 150 ) { + if ( rwy_info.width <= 150 && light_flag == "B" ) material = "pc_taxiway"; - } else { + else material = "pc_tiedown"; - } } } else if ( surface_flag == "D" ) { material = "dirt_rwy";