From: Clément de l'Hamaide Date: Thu, 16 Jan 2014 17:15:45 +0000 (+0100) Subject: FGCom: force 8.33KHz to be handled even if the frequency doesn't exist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0c8158ca1071b1d3ff620ca48549f4b3d8992c9;p=flightgear.git FGCom: force 8.33KHz to be handled even if the frequency doesn't exist --- diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index cc935071f..3a1f7e1df 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -546,7 +546,10 @@ std::string FGCom::getAirportCode(const double& freq) flightgear::CommStation* apt = flightgear::CommStation::findByFreq(_currentFreqKhz, aircraftPos); if( !apt ) { - return std::string(); + apt = flightgear::CommStation::findByFreq(_currentFreqKhz-10, aircraftPos); // Check for 8.33KHz + if( !apt ) { + return std::string(); + } } if( apt->type() == FGPositioned::FREQ_TOWER ) {