1
0
Fork 0

Allow aircraft model file to be specified from the command line.

This commit is contained in:
curt 1999-12-20 20:25:58 +00:00
parent 9892d4f03e
commit 3cca59bf1f

View file

@ -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");