From: Durk Talsma Date: Fri, 15 May 2015 19:42:10 +0000 (+0200) Subject: Temporary fix: ground networks are not loaded when a navcache is present. But, the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e76a6df9093e5c7c878ac27780b944d7ed22e4fe;p=flightgear.git Temporary fix: ground networks are not loaded when a navcache is present. But, the AI/ATC code relies on radio frequencies listed in the groundnet files. Since these are not imported into the nav cache, they remain 0. By forcing the loading of the ground networks, I have the frequencies back. We should find a proper solution later. --- diff --git a/src/Airports/xmlloader.cxx b/src/Airports/xmlloader.cxx index 8291358b4..a4dddabc6 100644 --- a/src/Airports/xmlloader.cxx +++ b/src/Airports/xmlloader.cxx @@ -50,9 +50,9 @@ void XMLLoader::load(FGAirportDynamics* d) } flightgear::NavDataCache* cache = flightgear::NavDataCache::instance(); - if (!cache->isCachedFileModified(path) || cache->isReadOnly()) { - return; - } + //if (!cache->isCachedFileModified(path) || cache->isReadOnly()) { + // return; + //} SG_LOG(SG_NAVAID, SG_INFO, "reading groundnet data from " << path); SGTimeStamp t;