]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/main.cxx
Added code to put aircraft at the end of the runway closest to the desired
[flightgear.git] / src / Main / main.cxx
index ec67ea5b65ac93a1b051cd3e4d55c17ae31fa079..4cd07e5a668198831b568f3a018719271c2a1b5f 100644 (file)
@@ -1317,7 +1317,9 @@ int main( int argc, char **argv ) {
 
     // set current_options lon/lat if an airport id is specified
     if ( current_options.get_airport_id().length() ) {
-       fgSetPosFromAirportID( current_options.get_airport_id() );
+       // fgSetPosFromAirportID( current_options.get_airport_id() );
+       fgSetPosFromAirportIDandHdg( current_options.get_airport_id(),
+                                    current_options.get_heading() );
     }
 
     // Initialize time