1
0
Fork 0

Load ground ATC frequency data, and map all stations by bucket index

This commit is contained in:
daveluff 2003-03-20 11:51:44 +00:00
parent ef3b5a4d61
commit 6fef4d457b

View file

@ -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;