From: curt Date: Sat, 16 Feb 2002 17:38:29 +0000 (+0000) Subject: Be more robust when FlightGear changes it's mind about the local ground X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc85f0c6343ca93c83ec33fa5d4af03f06ed1001;p=flightgear.git Be more robust when FlightGear changes it's mind about the local ground elevation. --- diff --git a/src/FDM/flight.cxx b/src/FDM/flight.cxx index 15404ec27..a0b7c4e59 100644 --- a/src/FDM/flight.cxx +++ b/src/FDM/flight.cxx @@ -558,7 +558,9 @@ void fgFDMForceAltitude(const string &model, double alt_meters) { cur_fdm_state->set_Altitude( alt_meters * SG_METER_TO_FEET ); cur_fdm_state->set_Sea_level_radius( sea_level_radius_meters * - SG_METER_TO_FEET ); + SG_METER_TO_FEET ); + cur_fdm_state->set_Runway_altitude( scenery.get_cur_elev() * + SG_METER_TO_FEET ); // additional work needed for some flight models if ( model == "larcsim" ) {