From: ThorstenB Date: Sat, 17 Nov 2012 19:05:16 +0000 (+0100) Subject: YASim airborne start-up X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e6f0e18fd63decc293984f759f1de74c2693a17;p=flightgear.git YASim airborne start-up Gear should be up when starting in-air. --- diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index 91662b6c4..a0f93c2f6 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -219,8 +219,14 @@ void YASim::init() minGearZ = pos[2]; } _set_Altitude(runway_altitude - minGearZ*M2FT); + // ground start-up: gear down fgSetBool("/controls/gear/gear-down", true); } + else + { + // airborne start-up: gear up + fgSetBool("/controls/gear/gear-down", false); + } // Blank the state, and copy in ours State s;