From: Torsten Dreyer Date: Sat, 26 Jun 2010 18:24:34 +0000 (+0200) Subject: Don't crash if built with --disable-atcdcl X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1b9d3d759c3039f3c28683d215fc7a03ff24497;p=flightgear.git Don't crash if built with --disable-atcdcl --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index d69478e55..8df5865f8 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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