Fix a preset in the air problem.
This commit is contained in:
parent
56db994994
commit
caea114d06
1 changed files with 7 additions and 3 deletions
|
@ -981,9 +981,13 @@ fgInitNav ()
|
||||||
bool fgInitPosition() {
|
bool fgInitPosition() {
|
||||||
bool set_pos = false;
|
bool set_pos = false;
|
||||||
|
|
||||||
// Default to starting on the ground unless one of the other
|
// Do a first guess if we should be on the ground or in the air
|
||||||
// conditions implies an in-air start.
|
// (to be refined later based on other input.
|
||||||
fgSetBool("/sim/presets/onground", true);
|
if ( fgGetDouble("/sim/presets/altitude-ft") > -9990.0 ) {
|
||||||
|
fgSetBool("/sim/presets/onground", false);
|
||||||
|
} else {
|
||||||
|
fgSetBool("/sim/presets/onground", true);
|
||||||
|
}
|
||||||
|
|
||||||
// If glideslope is specified, then calculate offset-distance or
|
// If glideslope is specified, then calculate offset-distance or
|
||||||
// altitude relative to glide slope if either of those was not
|
// altitude relative to glide slope if either of those was not
|
||||||
|
|
Loading…
Add table
Reference in a new issue