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 {
|
try {
|
||||||
model = load3DModel( globals->get_fg_root(), ai_path.str(), props,
|
model = load3DModel( globals->get_fg_root(), ai_path.str(), props,
|
||||||
globals->get_sim_time_sec() );
|
globals->get_sim_time_sec() );
|
||||||
} catch (const sg_exception &e) {
|
} catch (const sg_exception &) {
|
||||||
model = NULL;
|
model = NULL;
|
||||||
}
|
}
|
||||||
if (!model) {
|
if (!model) {
|
||||||
try {
|
try {
|
||||||
model = load3DModel( globals->get_fg_root(), model_path, props,
|
model = load3DModel( globals->get_fg_root(), model_path, props,
|
||||||
globals->get_sim_time_sec() );
|
globals->get_sim_time_sec() );
|
||||||
} catch (const sg_exception &e) {
|
} catch (const sg_exception &) {
|
||||||
model = NULL;
|
model = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -374,7 +374,7 @@ bool FGAISchedule::update(time_t now)
|
||||||
{
|
{
|
||||||
string flightPlanName = dep->getId() + string("-") + arr->getId() +
|
string flightPlanName = dep->getId() + string("-") + arr->getId() +
|
||||||
string(".xml");
|
string(".xml");
|
||||||
int alt;
|
//int alt;
|
||||||
//if ((i->getDepartureTime() < now))
|
//if ((i->getDepartureTime() < now))
|
||||||
//{
|
//{
|
||||||
// alt = i->getCruiseAlt() *100;
|
// alt = i->getCruiseAlt() *100;
|
||||||
|
@ -461,8 +461,8 @@ void FGAISchedule::next()
|
||||||
|
|
||||||
double FGAISchedule::getSpeed()
|
double FGAISchedule::getSpeed()
|
||||||
{
|
{
|
||||||
double courseToUser, courseToDest;
|
double courseToDest;
|
||||||
double distanceToUser, distanceToDest;
|
double distanceToDest;
|
||||||
double speed, remainingTimeEnroute;
|
double speed, remainingTimeEnroute;
|
||||||
FGAirport *dep, *arr;
|
FGAirport *dep, *arr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue