Fixes to the default.ils building script.
This commit is contained in:
parent
154ab45912
commit
a918236e2d
1 changed files with 2 additions and 5 deletions
|
@ -328,13 +328,10 @@ sub load_fgfs() {
|
||||||
my( $code ) = $icao;
|
my( $code ) = $icao;
|
||||||
$code =~ s/^K//;
|
$code =~ s/^K//;
|
||||||
if ( $ILS{$icao . $rwy} ne "" ) {
|
if ( $ILS{$icao . $rwy} ne "" ) {
|
||||||
|
print "FGFS: Skipping $icao - $rwy - already exists\n";
|
||||||
# skip approaches already in FAA or DAFIFT data
|
# skip approaches already in FAA or DAFIFT data
|
||||||
} elsif ( $AIRPORTS{$icao} != 1 && $AIRPORTS{$code} != 1 ) {
|
|
||||||
# skip approaches if the FAA or DAFIFT data has any other
|
|
||||||
# approach already for this airport. (Avoids carrying over
|
|
||||||
# extraneous data if an approach was deactivated or runway
|
|
||||||
# numbers were changed.)
|
|
||||||
} elsif ( length( $icao ) < 4 || $icao =~ m/^K/ ) {
|
} elsif ( length( $icao ) < 4 || $icao =~ m/^K/ ) {
|
||||||
|
print "FGFS: Skipping $icao - $rwy - USA\n";
|
||||||
# skip USA approaches not found in FAA or DAFIFT data
|
# skip USA approaches not found in FAA or DAFIFT data
|
||||||
} else {
|
} else {
|
||||||
print "FGFS adding: $icao $rwy\n";
|
print "FGFS adding: $icao $rwy\n";
|
||||||
|
|
Loading…
Reference in a new issue