const int max_trans = 20;
FGTransmission tmissions[max_trans];
int wpn;
- int station = 1;
+ atc_type station = APPROACH;
TransCode code;
TransPar TPar;
int i,j;
for (i=0; i<num_planes; i++) {
if ( planes[i].ident == "Player") {
- station = 1;
+ station = APPROACH;
tpars.station = name;
tpars.callsign = "Player";
tpars.airport = ident;
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 (!current_atcdialog->trans_reg( ident, transm, APPROACH )) {
+ current_atcdialog->add_entry( ident, transm, mentry, APPROACH, 0 );
}
}
}
tpars.alt = planes[i].aalt;
message = current_transmissionlist->gen_text(station, code, tpars, true );
//cout << "Approach transmitting...\n";
- //cout << message << '\n';
+ //cout << message << endl;
globals->get_ATC_display()->RegisterSingleMessage( message, 0 );
}
tpars.runway = active_runway;
message = current_transmissionlist->gen_text(station, code, tpars, true);
//cout << "Approach transmitting 2 ...\n";
- //cout << message << '\n';
+ //cout << message << endl;
globals->get_ATC_display()->RegisterSingleMessage( message, 0 );
}
planes[i].lmc = code;