1
0
Fork 0

YASim airborne start-up

Gear should be up when starting in-air.
This commit is contained in:
ThorstenB 2012-11-17 20:05:16 +01:00
parent adc95a4b55
commit 4e6f0e18fd

View file

@ -219,8 +219,14 @@ void YASim::init()
minGearZ = pos[2]; minGearZ = pos[2];
} }
_set_Altitude(runway_altitude - minGearZ*M2FT); _set_Altitude(runway_altitude - minGearZ*M2FT);
// ground start-up: gear down
fgSetBool("/controls/gear/gear-down", true); 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 // Blank the state, and copy in ours
State s; State s;