From: mfranz Date: Thu, 4 Oct 2007 20:16:27 +0000 (+0000) Subject: minor fix to please (other) pedants :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37cc06e33515672a43c4cdf776175be4267faf4c;p=flightgear.git minor fix to please (other) pedants :-) --- diff --git a/src/Airports/runways.cxx b/src/Airports/runways.cxx index e3b45261d..85b92ec5a 100644 --- a/src/Airports/runways.cxx +++ b/src/Airports/runways.cxx @@ -258,7 +258,7 @@ string FGRunwayList::search( const string& aptid, const int hdg ) { diff += 360; while (diff >= 180) diff -= 360; - bad = DEVWGT * fabs(diff) + 1e-20; + bad = fabs(DEVWGT * diff) + 1e-20; quality = good / bad; //SG_LOG(SG_GENERAL, SG_DEBUG, " runway " << r._rwy_no << " -> " << quality); @@ -274,7 +274,7 @@ string FGRunwayList::search( const string& aptid, const int hdg ) { diff += 360; while (diff >= 180) diff -= 360; - bad = DEVWGT * fabs(diff) + 1e-20; + bad = fabs(DEVWGT * diff) + 1e-20; quality = good / bad; //SG_LOG(SG_GENERAL, SG_DEBUG, " runway " << GetReverseRunwayNo(r._rwy_no)