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();
}
FGAIMgr::~FGAIMgr() {
- ssgDeRefDelete(_defaultModel);
- if(_havePiperModel) ssgDeRefDelete(_piperModel);
}
void FGAIMgr::init() {
_havePiperModel = false;
}
- // We need to keep one ref of the models open to stop ssg deleting them behind our back!
- _defaultModel->ref();
- if(_havePiperModel) _piperModel->ref();
-
// go through the $FG_ROOT/ATC directory and find all *.taxi files
SGPath path(globals->get_fg_root());
path.append("ATC/");
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';