]> git.mxchange.org Git - flightgear.git/commitdiff
Allow aircraft model file to be specified from the command line.
authorcurt <curt>
Mon, 20 Dec 1999 20:25:58 +0000 (20:25 +0000)
committercurt <curt>
Mon, 20 Dec 1999 20:25:58 +0000 (20:25 +0000)
src/FDM/JSBSim.cxx

index d2e52dbf89f42d40ea3e337c4604ae1f8521e42e..fb6eafccaca0a1e6d8bf6ba399cb8510c92acebf 100644 (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");