From 8634b9124ec5fde490c6b99046dcd16785f187a0 Mon Sep 17 00:00:00 2001 From: durk Date: Sun, 17 Dec 2006 08:01:56 +0000 Subject: [PATCH] Modified the model path verification to take advantage of Maik Justus's AI search path patch. --- src/Traffic/Schedule.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Traffic/Schedule.cxx b/src/Traffic/Schedule.cxx index c136dbfca..039705ad2 100644 --- a/src/Traffic/Schedule.cxx +++ b/src/Traffic/Schedule.cxx @@ -384,10 +384,15 @@ bool FGAISchedule::update(time_t now) // alt = dep->_elevation+19; // } - // Only allow traffic to be created when the model path exists + // 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); - if (mp.exists()) + mp_ai.append("AI"); + mp_ai.append(modelPath); + + if (mp.exists() || mp_ai.exists()) { FGAIAircraft *aircraft = new FGAIAircraft(this); aircraft->setPerformance(m_class); //"jet_transport"; -- 2.39.5