From 37cc06e33515672a43c4cdf776175be4267faf4c Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 4 Oct 2007 20:16:27 +0000 Subject: [PATCH] minor fix to please (other) pedants :-) --- src/Airports/runways.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5