Remove unused variables
This commit is contained in:
parent
240feb6961
commit
462dd6900c
2 changed files with 5 additions and 5 deletions
|
@ -133,14 +133,14 @@ bool FGAIBase::init() {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -374,7 +374,7 @@ bool FGAISchedule::update(time_t now)
|
|||
{
|
||||
string flightPlanName = dep->getId() + string("-") + arr->getId() +
|
||||
string(".xml");
|
||||
int alt;
|
||||
//int alt;
|
||||
//if ((i->getDepartureTime() < now))
|
||||
//{
|
||||
// alt = i->getCruiseAlt() *100;
|
||||
|
@ -461,8 +461,8 @@ void FGAISchedule::next()
|
|||
|
||||
double FGAISchedule::getSpeed()
|
||||
{
|
||||
double courseToUser, courseToDest;
|
||||
double distanceToUser, distanceToDest;
|
||||
double courseToDest;
|
||||
double distanceToDest;
|
||||
double speed, remainingTimeEnroute;
|
||||
FGAirport *dep, *arr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue