1
0
Fork 0

Fix a reset bug for at least JSBSim by removing some apperently old UIUC code. This falls in the same category as the code from main.cxx which was recently removed by advice from the UIUC developers.

This commit is contained in:
ehofman 2003-09-03 17:10:52 +00:00
parent c81fbb937a
commit ffd64f7a8c

View file

@ -988,14 +988,6 @@ bool fgInitPosition() {
fgSetDistOrAltFromGlideSlope(); fgSetDistOrAltFromGlideSlope();
} }
// Select ground or air start depending on if an altitude is
// specified (this choice can be refined later based on other
// input.)
if ( fgGetDouble("/sim/presets/altitude-ft") > -9990.0 ) {
fgSetBool("/sim/presets/onground", false);
} else {
fgSetBool("/sim/presets/onground", true);
}
// If we have an explicit, in-range lon/lat, don't change it, just use it. // If we have an explicit, in-range lon/lat, don't change it, just use it.
// If not, check for an airport-id and use that. // If not, check for an airport-id and use that.