1
0
Fork 0

Be more robust when FlightGear changes it's mind about the local ground

elevation.
This commit is contained in:
curt 2002-02-16 17:38:29 +00:00
parent 4f67824f09
commit dc85f0c634

View 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_Altitude( alt_meters * SG_METER_TO_FEET );
cur_fdm_state->set_Sea_level_radius( sea_level_radius_meters * 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 // additional work needed for some flight models
if ( model == "larcsim" ) { if ( model == "larcsim" ) {