From 6769d7974c3e3235bd5bc4c2a51c17d2699f9118 Mon Sep 17 00:00:00 2001 From: daveluff Date: Tue, 14 Oct 2003 11:09:10 +0000 Subject: [PATCH] Display AI plane transmissions if comm2 is tuned to the same frequency --- src/ATC/AIPlane.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ATC/AIPlane.cxx b/src/ATC/AIPlane.cxx index bfb83a0e9..a2ea436fb 100644 --- a/src/ATC/AIPlane.cxx +++ b/src/ATC/AIPlane.cxx @@ -78,11 +78,11 @@ void FGAIPlane::Update(double dt) { // TODO - turn it off if user switches to another freq - keep track of where in message we are etc. if(_transmit) { double user_freq0 = fgGetDouble("/radios/comm[0]/frequencies/selected-mhz"); - //comm1 is not used yet. + double user_freq1 = fgGetDouble("/radios/comm[1]/frequencies/selected-mhz"); _counter = 0.0; _max_count = 5.0; // FIXME - hardwired length of message - need to calculate it! - if(freq == user_freq0) { + if(freq == user_freq0 || freq == user_freq1) { //cout << "Transmitting..." << endl; // we are on the same frequency, so check distance to the user plane if(1) { -- 2.39.5