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:
parent
084ba158b7
commit
91420a196e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue