From dc85f0c6343ca93c83ec33fa5d4af03f06ed1001 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 16 Feb 2002 17:38:29 +0000 Subject: [PATCH] Be more robust when FlightGear changes it's mind about the local ground elevation. --- src/FDM/flight.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" ) { -- 2.39.5