1
0
Fork 0

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
This commit is contained in:
david 2003-11-30 22:03:06 +00:00
parent e8bcdaa4d0
commit 30de6cb81a

View file

@ -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,18 +245,20 @@ static void build_runway( const TGRunway& rwy_info,
if ( !rwy_info.really_taxiway ) {
material = "pa_"; // asphalt
} else {
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";
} else if ( surface_flag == "G" ) {