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

@ -559,6 +559,8 @@ 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 );
cur_fdm_state->set_Runway_altitude( scenery.get_cur_elev() *
SG_METER_TO_FEET );
// additional work needed for some flight models
if ( model == "larcsim" ) {