1
0
Fork 0

Comment out some unused vars.

This commit is contained in:
ThorstenB 2012-04-07 16:19:33 +02:00
parent 9effb06047
commit 82d66caaf2

View file

@ -196,7 +196,7 @@ bool FGAISchedule::update(time_t now, const SGVec3d& userCart)
time_t time_t
totalTimeEnroute, totalTimeEnroute,
elapsedTimeEnroute, elapsedTimeEnroute,
remainingTimeEnroute, //remainingTimeEnroute,
deptime = 0; deptime = 0;
if (!valid) { if (!valid) {
return false; return false;
@ -259,7 +259,7 @@ bool FGAISchedule::update(time_t now, const SGVec3d& userCart)
totalTimeEnroute = flight->getArrivalTime() - flight->getDepartureTime(); totalTimeEnroute = flight->getArrivalTime() - flight->getDepartureTime();
if (flight->getDepartureTime() < now) { if (flight->getDepartureTime() < now) {
elapsedTimeEnroute = now - flight->getDepartureTime(); elapsedTimeEnroute = now - flight->getDepartureTime();
remainingTimeEnroute = totalTimeEnroute - elapsedTimeEnroute; //remainingTimeEnroute = totalTimeEnroute - elapsedTimeEnroute;
double x = elapsedTimeEnroute / (double) totalTimeEnroute; double x = elapsedTimeEnroute / (double) totalTimeEnroute;
// current pos is based on great-circle course between departure/arrival, // current pos is based on great-circle course between departure/arrival,
@ -275,7 +275,7 @@ bool FGAISchedule::update(time_t now, const SGVec3d& userCart)
speed = ((distanceM - coveredDistance) * SG_METER_TO_NM) / 3600.0; speed = ((distanceM - coveredDistance) * SG_METER_TO_NM) / 3600.0;
} else { } else {
// not departed yet // not departed yet
remainingTimeEnroute = totalTimeEnroute; //remainingTimeEnroute = totalTimeEnroute;
elapsedTimeEnroute = 0; elapsedTimeEnroute = 0;
position = dep->geod(); position = dep->geod();
SG_LOG (SG_GENERAL, SG_BULK, "Traffic Manager: Flight is pending, departure in " SG_LOG (SG_GENERAL, SG_BULK, "Traffic Manager: Flight is pending, departure in "
@ -283,7 +283,7 @@ bool FGAISchedule::update(time_t now, const SGVec3d& userCart)
} }
} else { } else {
// departure / arrival coincident // departure / arrival coincident
remainingTimeEnroute = totalTimeEnroute = 0.0; //remainingTimeEnroute = totalTimeEnroute = 0.0;
elapsedTimeEnroute = 0; elapsedTimeEnroute = 0;
position = dep->geod(); position = dep->geod();
} }