From 6fef4d457b070ed0c693cc6de1fa229c7f0bfd78 Mon Sep 17 00:00:00 2001 From: daveluff Date: Thu, 20 Mar 2003 11:51:44 +0000 Subject: [PATCH] Load ground ATC frequency data, and map all stations by bucket index --- src/ATC/commlist.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ATC/commlist.cxx b/src/ATC/commlist.cxx index ccf8884ca..fe52e03af 100644 --- a/src/ATC/commlist.cxx +++ b/src/ATC/commlist.cxx @@ -61,6 +61,9 @@ bool FGCommList::init( SGPath path ) { temp.append( "ATC/default.tower" ); LoadComms(temp); temp = path; + temp.append( "ATC/default.ground" ); + LoadComms(temp); + temp = path; temp.append( "ATC/default.approach" ); LoadComms(temp); return true; @@ -94,12 +97,13 @@ bool FGCommList::LoadComms(SGPath path) { commlist_freq[a.freq].push_back(a); // Push non-atis stations onto bucket map as well - if(a.type != ATIS) { + // In fact, push all stations onto bucket map for now so FGATCMgr::GetFrequency() works. + //if(a.type != ATIS) { // get bucket number SGBucket bucket(a.lon, a.lat); int bucknum = bucket.gen_index(); commlist_bck[bucknum].push_back(a); - } + //} } fin >> skipcomment;