]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCDialog.cxx
Harald JOHNSEN:
[flightgear.git] / src / ATC / ATCDialog.cxx
index 3946898f65eb261984b91ace0ebb65e734062abe..42d8bf7be7f5b873d618145900c0569d2afaad84 100644 (file)
@@ -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();