Quick hack to prevent offering an option that isn't implemented yet
This commit is contained in:
parent
cca9f49425
commit
90c0f80b9a
1 changed files with 11 additions and 8 deletions
|
@ -125,15 +125,18 @@ void FGApproach::Update(double dt) {
|
||||||
// loop over all transmissions for station
|
// loop over all transmissions for station
|
||||||
for ( j=0; j<=num_trans-1; j++ ) {
|
for ( j=0; j<=num_trans-1; j++ ) {
|
||||||
code = tmissions[j].get_code();
|
code = tmissions[j].get_code();
|
||||||
|
//cout << "code is " << code.c1 << " " << code.c2 << " " << code.c3 << '\n';
|
||||||
// select proper transmissions
|
// select proper transmissions
|
||||||
if ( ( code.c2 == -1 && planes[i].lmc.c3 == 0 ) ||
|
if(code.c3 != 2) { // DCL - hack to prevent request crossing airspace being displayed since this isn't implemented yet.
|
||||||
( code.c1 == 0 && code.c2 == planes[i].lmc.c2 ) ) {
|
if ( ( code.c2 == -1 && planes[i].lmc.c3 == 0 ) ||
|
||||||
mentry = current_transmissionlist->gen_text(station, code, tpars, false);
|
( code.c1 == 0 && code.c2 == planes[i].lmc.c2 ) ) {
|
||||||
transm = current_transmissionlist->gen_text(station, code, tpars, true);
|
mentry = current_transmissionlist->gen_text(station, code, tpars, false);
|
||||||
// is the transmission already registered?
|
transm = current_transmissionlist->gen_text(station, code, tpars, true);
|
||||||
if (!current_atcdialog->trans_reg( ident, transm )) {
|
// is the transmission already registered?
|
||||||
current_atcdialog->add_entry( ident, transm, mentry );
|
if (!current_atcdialog->trans_reg( ident, transm )) {
|
||||||
}
|
current_atcdialog->add_entry( ident, transm, mentry );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue