From 91420a196e77f4b8b38b04b7bb85e7a11bf67cbf Mon Sep 17 00:00:00 2001 From: fredb Date: Thu, 18 Dec 2008 06:52:51 +0000 Subject: [PATCH] James Turner : in the 'tower' view, where the tower position is explicitly given in apt.dat (most of the larger airports), I was incorrectly treating the tower elevation as ASL, when it's AGL. --- src/Airports/apt_loader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Airports/apt_loader.cxx b/src/Airports/apt_loader.cxx index 85f803191..cb64a633e 100644 --- a/src/Airports/apt_loader.cxx +++ b/src/Airports/apt_loader.cxx @@ -246,7 +246,7 @@ bool fgAirportDBLoad( FGAirportList *airports, double lat = atof( token[1].c_str() ); double lon = atof( token[2].c_str() ); double elev = atof( token[3].c_str() ); - last_tower = SGGeod::fromDegFt(lon, lat, elev); + last_tower = SGGeod::fromDegFt(lon, lat, elev + last_apt_elev); got_tower = true; } else if ( line_id == 19 ) { // windsock entry (ignore)