1
0
Fork 0

Fix glide slope angle parsing for newest x-plane data.

This commit is contained in:
curt 2005-09-28 17:27:07 +00:00
parent b6b0033859
commit e78b14e052

View file

@ -428,8 +428,8 @@ void build_airport( string airport_id, float alt_m,
string vasi_angles = token[15];
vector<string> vasis = simgear::strutils::split( vasi_angles, "." );
rwy.gs_angle1 = atoi( vasis[0].c_str() );
rwy.gs_angle2 = atoi( vasis[1].c_str() );
rwy.gs_angle1 = atof( vasis[0].c_str() ) * 0.01;
rwy.gs_angle2 = atof( vasis[1].c_str() ) * 0.01;
SG_LOG( SG_GENERAL, SG_DEBUG, " no = " << rwy.rwy_no);
SG_LOG( SG_GENERAL, SG_DEBUG, " lat = " << rwy.lat);