]> git.mxchange.org Git - flightgear.git/commitdiff
When reseting the aircraft position, the system looks at a number of the
authorcurt <curt>
Wed, 7 May 2003 16:00:31 +0000 (16:00 +0000)
committercurt <curt>
Wed, 7 May 2003 16:00:31 +0000 (16:00 +0000)
requested parameters to determine if this should be an on-ground vs. in-air
start.  The problem was that we never defaulted the value to anything so
if we didn't match an in-air condition, we simply inherited whatever value
was there from before.

src/Main/fg_init.cxx

index 8f122720aaf9424d0c375b2a74f94ee71d66c290..81be29a5b57d11d3f1a37b643c95b47d4a600299 100644 (file)
@@ -979,6 +979,10 @@ fgInitNav ()
 bool fgInitPosition() {
     bool set_pos = false;
 
+    // Default to starting on the ground unless one of the other
+    // conditions implies an in-air start.
+    fgSetBool("/sim/presets/onground", true);
+
     // If glideslope is specified, then calculate offset-distance or
     // altitude relative to glide slope if either of those was not
     // specified.