]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/main.cxx
Make FGAircraftModel behave like a standarrd subsystem.
[flightgear.git] / src / Main / main.cxx
index 294c39c924346f08b69da8c20327b12db2a7804a..1ed54dfe03a2b3dbd418f3c0a4d1288ba5037d09 100644 (file)
@@ -158,7 +158,6 @@ static void fgMainLoop( void ) {
 #endif  
     
     globals->get_subsystem_mgr()->update(sim_dt);
-    globals->get_aircraft_model()->update(sim_dt);
 
     // run Nasal's settimer() loops right before the view manager
     globals->get_event_mgr()->update(sim_dt);
@@ -404,9 +403,7 @@ static void fgIdleFunction ( void ) {
         ////////////////////////////////////////////////////////////////////
         FGAircraftModel* acm = new FGAircraftModel;
         globals->set_aircraft_model(acm);
-        //globals->add_subsystem("aircraft-model", acm);
-        acm->init();
-        acm->bind();
+        globals->add_subsystem("aircraft-model", acm, SGSubsystemMgr::DISPLAY);
 
         ////////////////////////////////////////////////////////////////////
         // Initialize the view manager subsystem.