From e78b14e05202a57d2e3c4c126f2cb8b5b29c83b8 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 28 Sep 2005 17:27:07 +0000 Subject: [PATCH] Fix glide slope angle parsing for newest x-plane data. --- src/Airports/GenAirports/build.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Airports/GenAirports/build.cxx b/src/Airports/GenAirports/build.cxx index f8328718..11564eeb 100644 --- a/src/Airports/GenAirports/build.cxx +++ b/src/Airports/GenAirports/build.cxx @@ -428,8 +428,8 @@ void build_airport( string airport_id, float alt_m, string vasi_angles = token[15]; vector 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);