]> git.mxchange.org Git - flightgear.git/commitdiff
minor fix to please (other) pedants :-)
authormfranz <mfranz>
Thu, 4 Oct 2007 20:16:27 +0000 (20:16 +0000)
committermfranz <mfranz>
Thu, 4 Oct 2007 20:16:27 +0000 (20:16 +0000)
src/Airports/runways.cxx

index e3b45261dbe3ce62219ebc1d7edbb911b736c018..85b92ec5a63b76a1c93c832d83ef1cb51a8b39e2 100644 (file)
@@ -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)