]> git.mxchange.org Git - flightgear.git/commitdiff
Bugfix: no automatic runway selection with --parkpos=
authorTorsten Dreyer <Torsten@t3r.de>
Wed, 10 Nov 2010 22:28:07 +0000 (23:28 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Wed, 10 Nov 2010 22:28:07 +0000 (23:28 +0100)
src/Main/main.cxx

index 9372f9cc915d00a03c3886d766a78eaf77079f72..8dbd12642509d3ff2beb8347d474934e4baae221 100644 (file)
@@ -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 );
             }