From 95679e6d76e86f6d5a7dbf1289ef4a641874e80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20de=20l=27Hamaide?= Date: Tue, 12 Nov 2013 22:41:08 +0100 Subject: [PATCH] Fix gen_phonebook.pl for airport at negative altitude --- utils/fgcom/utils/gen_phonebook.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 utils/fgcom/utils/gen_phonebook.pl diff --git a/utils/fgcom/utils/gen_phonebook.pl b/utils/fgcom/utils/gen_phonebook.pl old mode 100644 new mode 100755 index cf3086965..f76ecb428 --- a/utils/fgcom/utils/gen_phonebook.pl +++ b/utils/fgcom/utils/gen_phonebook.pl @@ -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;