} else if(atcptr->GetType() == TOWER) {
//cout << "TOWER " << endl;
//cout << "ident is " << atcptr->get_ident() << endl;
- atcmentry_vec_type atcmlist = (available_dialog[TOWER])[(string)atcptr->get_ident()];
+ atcmentry_vec_type atcmlist = (available_dialog[TOWER])[atcptr->get_ident()];
if(atcmlist.size()) {
//cout << "Doing callback...\n";
ATCMenuEntry a = atcmlist[atcDialogCommunicationOptions->getValue()];
atcptr->SetFreqInUse();
+ // This is the user's speech getting displayed.
globals->get_ATC_display()->RegisterSingleMessage(atcptr->GenText(a.transmission, a.callback_code));
_callbackPending = true;
_callbackTimer = 0.0;
FGAirport a;
if ( dclFindAirportID( ident, &a ) ) {
comm_list_type stations;
- int found = current_commlist->FindByPos(a.longitude, a.latitude, a.elevation, 20.0, &stations);
+ int found = current_commlist->FindByPos(a._longitude, a._latitude, a._elevation, 20.0, &stations);
if(found) {
ostringstream ostr;
comm_list_iterator itr = stations.begin();