#include <Environment/environment_mgr.hxx>
#include <Environment/environment.hxx>
+#include <Traffic/Schedule.hxx>
+
#include "AIFlightPlan.hxx"
#include "AIAircraft.hxx"
wpt->setFinished ((wpt->getName() == "END"));
pushBackWaypoint( wpt );
}
+ if( getLastWaypoint()->getName().compare("END") != 0 ) {
+ SG_LOG(SG_AI, SG_ALERT, "FGAIFlightPlan::Flightplan missing END node" );
+ return false;
+ }
+
wpt_iterator = waypoints.begin();
return true;