X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATC%2FATCDialog.cxx;h=42d8bf7be7f5b873d618145900c0569d2afaad84;hb=68f248879cb15562c7b026445f83caf8f2842ae9;hp=3946898f65eb261984b91ace0ebb65e734062abe;hpb=4d25095e76b3a39ba3e1ae2c6aeb7c971c06ab07;p=flightgear.git diff --git a/src/ATC/ATCDialog.cxx b/src/ATC/ATCDialog.cxx index 3946898f6..42d8bf7be 100644 --- a/src/ATC/ATCDialog.cxx +++ b/src/ATC/ATCDialog.cxx @@ -404,6 +404,7 @@ void FGATCDialog::PopupCallback() { //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; @@ -459,7 +460,7 @@ void FGATCDialog::FreqDisplay(string ident) { 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.getLongitude(), a.getLatitude(), a.getElevation(), 20.0, &stations); if(found) { ostringstream ostr; comm_list_iterator itr = stations.begin();