//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#include <simgear/misc/sg_path.hxx>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/math/sg_random.h>
#include <list>
FGAIMgr::FGAIMgr() {
ATC = globals->get_ATC_mgr();
initDone = false;
- ai_callsigns_used["CFGFS"] = 1; // so we don't inadvertently use this
+ ai_callsigns_used["GFS"] = 1; // so we don't inadvertently use this
// TODO - use the proper user callsign when it becomes user settable.
removalList.clear();
activated.clear();
double d = dclGetHorizontalSeparation(userpos, aptpos); // in meters
int lev = fgGetInt("/sim/ai-traffic/level");
- if(lev < 1 || lev > 3) lev = 2;
+ if(lev < 1)
+ return;
+ if (lev > 3)
+ lev = 3;
if(visibility < 6000) lev = 1;
//cout << "level = " << lev << '\n';