]> git.mxchange.org Git - flightgear.git/commitdiff
Be more robust when FlightGear changes it's mind about the local ground
authorcurt <curt>
Sat, 16 Feb 2002 17:38:29 +0000 (17:38 +0000)
committercurt <curt>
Sat, 16 Feb 2002 17:38:29 +0000 (17:38 +0000)
elevation.

src/FDM/flight.cxx

index 15404ec27f6df506299daafe3ec386777b8a480a..a0b7c4e5901646707a8151e800374346cf3e6600 100644 (file)
@@ -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" ) {