From 0917a5e062b531963f9f3d16bb0f95f769d34f61 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 10 Nov 2010 23:28:07 +0100 Subject: [PATCH] Bugfix: no automatic runway selection with --parkpos= --- src/Main/main.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 9372f9cc9..8dbd12642 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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 ); } -- 2.39.5