1
0
Fork 0

Remove some remaining non-route-related uses of SGWayPoint.

This commit is contained in:
jmt 2009-06-09 20:16:32 +00:00 committed by Tim Moore
parent 52bac46535
commit a29e5ce666
2 changed files with 0 additions and 12 deletions

View file

@ -227,7 +227,6 @@ private:
TaxiRouteVector routes;
TrafficVector activeTraffic;
TrafficVectorIterator currTraffic;
SGWayPoint destination;
bool foundRoute;
double totalDistance, maxDistance;

View file

@ -315,22 +315,11 @@ void FGAirwayNetwork::load(SGPath path)
double minDist = HUGE_VAL;
double distsqrt, lat2, lon2;
int index;
SGWayPoint first (lon,
lat,
0);
//cerr << "Lat " << lat << " lon " << lon << endl;
for (FGNodeVectorIterator
itr = nodes.begin();
itr != nodes.end(); itr++)
{
//double course;
//if ((fabs(lat - ((*itr)->getLatitude())) < 0.001) &&
// (fabs(lon - ((*itr)->getLongitude()) < 0.001)))
//cerr << "Warning: nodes are near" << endl;
//SGWayPoint second ((*itr)->getLongitude(),
// (*itr)->getLatitude(),
// 0);
//first.CourseAndDistance(second, &course, &dist);
lat2 = (*itr)->getLatitude();
lon2 = (*itr)->getLongitude();
// Note: This equation should adjust for decreasing distance per longitude