From: curt Date: Mon, 20 Dec 1999 20:25:58 +0000 (+0000) Subject: Allow aircraft model file to be specified from the command line. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3cca59bf1fd40aedc6558a4a23f09cac8339b06d;p=flightgear.git Allow aircraft model file to be specified from the command line. --- diff --git a/src/FDM/JSBSim.cxx b/src/FDM/JSBSim.cxx index d2e52dbf8..fb6eafcca 100644 --- a/src/FDM/JSBSim.cxx +++ b/src/FDM/JSBSim.cxx @@ -61,9 +61,11 @@ int FGJSBsim::init( double dt ) { FGPath engine_path( current_options.get_fg_root() ); engine_path.append( "Engine" ); - FDMExec.GetAircraft()->LoadAircraft(aircraft_path.str(), - engine_path.str(), "X15"); - FG_LOG( FG_FLIGHT, FG_INFO, " loaded aircraft" ); + FDMExec.GetAircraft()->LoadAircraft( aircraft_path.str(), + engine_path.str(), + current_options.get_aircraft() ); + FG_LOG( FG_FLIGHT, FG_INFO, " loaded aircraft" << + current_options.get_aircraft() ); // FDMExec.GetState()->Reset(aircraft_path.str(), "Reset00");