try {
model = load3DModel( globals->get_fg_root(), ai_path.str(), props,
globals->get_sim_time_sec() );
- } catch (const sg_exception &e) {
+ } catch (const sg_exception &) {
model = NULL;
}
if (!model) {
try {
model = load3DModel( globals->get_fg_root(), model_path, props,
globals->get_sim_time_sec() );
- } catch (const sg_exception &e) {
+ } catch (const sg_exception &) {
model = NULL;
}
}
{
string flightPlanName = dep->getId() + string("-") + arr->getId() +
string(".xml");
- int alt;
+ //int alt;
//if ((i->getDepartureTime() < now))
//{
// alt = i->getCruiseAlt() *100;
double FGAISchedule::getSpeed()
{
- double courseToUser, courseToDest;
- double distanceToUser, distanceToDest;
+ double courseToDest;
+ double distanceToDest;
double speed, remainingTimeEnroute;
FGAirport *dep, *arr;