From 90c0f80b9ac2c447eae12a6a4ad80fc982199093 Mon Sep 17 00:00:00 2001 From: daveluff Date: Fri, 17 Oct 2003 18:56:29 +0000 Subject: [PATCH] Quick hack to prevent offering an option that isn't implemented yet --- src/ATC/approach.cxx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/ATC/approach.cxx b/src/ATC/approach.cxx index 3e54ef579..ca346bfb8 100644 --- a/src/ATC/approach.cxx +++ b/src/ATC/approach.cxx @@ -125,15 +125,18 @@ void FGApproach::Update(double dt) { // loop over all transmissions for station for ( j=0; j<=num_trans-1; j++ ) { code = tmissions[j].get_code(); + //cout << "code is " << code.c1 << " " << code.c2 << " " << code.c3 << '\n'; // select proper transmissions - if ( ( code.c2 == -1 && planes[i].lmc.c3 == 0 ) || - ( code.c1 == 0 && code.c2 == planes[i].lmc.c2 ) ) { - mentry = current_transmissionlist->gen_text(station, code, tpars, false); - transm = current_transmissionlist->gen_text(station, code, tpars, true); - // is the transmission already registered? - if (!current_atcdialog->trans_reg( ident, transm )) { - current_atcdialog->add_entry( ident, transm, mentry ); - } + if(code.c3 != 2) { // DCL - hack to prevent request crossing airspace being displayed since this isn't implemented yet. + if ( ( code.c2 == -1 && planes[i].lmc.c3 == 0 ) || + ( code.c1 == 0 && code.c2 == planes[i].lmc.c2 ) ) { + mentry = current_transmissionlist->gen_text(station, code, tpars, false); + transm = current_transmissionlist->gen_text(station, code, tpars, true); + // is the transmission already registered? + if (!current_atcdialog->trans_reg( ident, transm )) { + current_atcdialog->add_entry( ident, transm, mentry ); + } + } } } } -- 2.39.5