Bugfix: no automatic runway selection with --parkpos=
This commit is contained in:
parent
9242f3a083
commit
0917a5e062
1 changed files with 2 additions and 1 deletions
|
@ -483,10 +483,11 @@ static void fgIdleFunction ( void ) {
|
|||
string apt = fgGetString( "/sim/startup/options/airport" );
|
||||
string rwy = fgGetString( "/sim/startup/options/runway" );
|
||||
double strthdg = fgGetDouble( "/sim/startup/options/heading-deg", 9999.0 );
|
||||
string parkpos = fgGetString( "/sim/presets/parkpos" );
|
||||
bool onground = fgGetBool( "/sim/presets/onground", false );
|
||||
// don't check for wind-speed < 1kt, this belongs to the runway-selection code
|
||||
// the other logic is taken from former startup.nas
|
||||
if( hdg < 360.0 && apt.length() > 0 && strthdg > 360.0 && rwy.length() == 0 && onground ) {
|
||||
if( hdg < 360.0 && apt.length() > 0 && strthdg > 360.0 && rwy.length() == 0 && onground && parkpos.length() == 0 ) {
|
||||
extern bool fgSetPosFromAirportIDandHdg( const string& id, double tgt_hdg );
|
||||
fgSetPosFromAirportIDandHdg( apt, hdg );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue