1
0
Fork 0

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.

This commit is contained in:
fredb 2008-12-18 06:52:51 +00:00
parent 084ba158b7
commit 91420a196e

View file

@ -246,7 +246,7 @@ bool fgAirportDBLoad( FGAirportList *airports,
double lat = atof( token[1].c_str() ); double lat = atof( token[1].c_str() );
double lon = atof( token[2].c_str() ); double lon = atof( token[2].c_str() );
double elev = atof( token[3].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; got_tower = true;
} else if ( line_id == 19 ) { } else if ( line_id == 19 ) {
// windsock entry (ignore) // windsock entry (ignore)