1
0
Fork 0

Traffic: adjust failure of for reachedEndOfCruise

When reachedEndOfCruise fails, return true, so we trigger the next
phase of the flight. Without this we get stuck logging the error
message, but not progressing the flight.
This commit is contained in:
James Turner 2020-10-23 16:00:27 +01:00
parent 4bbff581f3
commit fd630b6d37

View file

@ -1341,7 +1341,9 @@ bool FGAIAircraft::reachedEndOfCruise(double &distance) {
FGAIWaypoint* curr = fp->getCurrentWaypoint();
if (!curr) {
SG_LOG(SG_AI, SG_WARN, "FGAIAircraft::reachedEndOfCruise: no current waypoint");
return false;
// return true (=done) here, so we don't just get stuck on this forever
return true;
}
if (curr->getName() == string("BOD")) {