1
0
Fork 0

Fix gen_phonebook.pl for airport at negative altitude

This commit is contained in:
Clément de l'Hamaide 2013-11-12 22:41:08 +01:00
parent 1b6ec7d149
commit 95679e6d76

2
utils/fgcom/utils/gen_phonebook.pl Normal file → Executable file
View file

@ -281,7 +281,7 @@ if ($fh->open($FG_AIRPORTS, "r")) {
$hadlines = 0;
next;
}
elsif ($z=~/^1\s+\d+\s+[01]\s+[01]\s+([A-Z0-9]+)\s+(.+)\s*$/)
elsif ($z=~/^1\s+-?\d+\s+[01]\s+[01]\s+([A-Z0-9]+)\s+(.+)\s*$/)
{
# Airport Header
$icao = $1;