Be more robust when FlightGear changes it's mind about the local ground
elevation.
This commit is contained in:
parent
4f67824f09
commit
dc85f0c634
1 changed files with 3 additions and 1 deletions
|
@ -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" ) {
|
||||
|
|
Loading…
Reference in a new issue