]> git.mxchange.org Git - flightgear.git/commitdiff
Make sure also not to try running AI_mgr when compiling fgfs with --disable-atcdcl...
authorDurk Talsma <d.talsma@xs4all.nl>
Sun, 27 Jun 2010 08:08:26 +0000 (10:08 +0200)
committerDurk Talsma <d.talsma@xs4all.nl>
Sun, 27 Jun 2010 08:08:26 +0000 (10:08 +0200)
src/Main/main.cxx

index 54d4034610630169a5d96f759274cba2d297c7f1..01d205aa4bb0f8f58cb5956008f8c9c5c30541ac 100644 (file)
@@ -346,14 +346,18 @@ static void fgMainLoop( void ) {
     // Run ATC subsystem
     if (fgGetBool("/sim/atc/enabled"))
         globals->get_ATC_mgr()->update(delta_time_sec);
-#endif
+
 
     // Run the AI subsystem
-    // FIXME: run that also if we have multiplaying enabled since the
-    // multiplayer information is interpreted by an AI model
+    // NOTE: the AI_mgr has nothing to do with the AIModels subsystem.
+    // There was previously a comment here stating that the
+    // AI_mgr code should be run then multiplayer is enabled.
+    // Multiplayer relies on AIModels, and not on the old and
+    // depricated AI_mgr system. So, we can safely skip the following
+    // two lines at compile time when compiling with --disable-atcdcl
     if (fgGetBool("/sim/ai-traffic/enabled"))
         globals->get_AI_mgr()->update(delta_time_sec);
-  
+#endif  
     
     globals->get_subsystem_mgr()->update(delta_time_sec);
     globals->get_aircraft_model()->update(delta_time_sec);