- SG_LOG(SG_AI, SG_INFO, "Traffic manager: Creating AIModel from:" << flightPlanName);
-
- // Only allow traffic to be created when the model path (or the AI version of mp) exists
- SGPath mp(globals->get_fg_root());
- SGPath mp_ai = mp;
-
- mp.append(modelPath);
- mp_ai.append("AI");
- mp_ai.append(modelPath);
-
- if (!mp.exists() && !mp_ai.exists()) {
- SG_LOG(SG_AI, SG_WARN, "TrafficManager: Could not load model " << mp_ai.str());
- return true;
- }