bool FGAISchedule::update(time_t now, const SGVec3d& userCart)
{
- if (!fgGetBool("/sim/traffic-manager/enabled"))
- return true;
-
time_t
totalTimeEnroute,
elapsedTimeEnroute,
currentDestination = flight->getArrivalAirport()->getId();
if (!initialized) {
string departurePort = flight->getDepartureAirport()->getId();
+ //cerr << "Scheduled " << registration << " " << score << " for Flight "
+ // << flight-> getCallSign() << " from " << departurePort << " to " << currentDestination << endl;
if (fgGetString("/sim/presets/airport-id") == departurePort) {
hits++;
}
- runCount++;
+ //runCount++;
initialized = true;
}
score = 0.0;
}
}
+ runCount++;
}
bool compareSchedules(FGAISchedule*a, FGAISchedule*b)