]> git.mxchange.org Git - flightgear.git/commitdiff
Don't crash if built with --disable-atcdcl
authorTorsten Dreyer <Torsten@t3r.de>
Sat, 26 Jun 2010 18:24:34 +0000 (20:24 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Sat, 26 Jun 2010 18:24:34 +0000 (20:24 +0200)
src/Main/main.cxx

index d69478e55c533f294bd0c2a48d1cc3503feca997..8df5865f83f7d0bead7e39cbfe7d93df66497138 100644 (file)
@@ -342,9 +342,11 @@ static void fgMainLoop( void ) {
     // implementation is an AI model and depends on that
     globals->get_multiplayer_mgr()->Update();
 
+#if ENABLE_ATCDCL
     // 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