check for allowTransmission
This commit is contained in:
parent
3a82ce7696
commit
9df5e8ee33
1 changed files with 3 additions and 3 deletions
|
@ -734,7 +734,9 @@ void FGATCController::transmit(FGTrafficRecord * rec, FGAirportDynamics *parent,
|
|||
|
||||
if ((onBoardRadioFreqI0 == stationFreq)
|
||||
|| (onBoardRadioFreqI1 == stationFreq)) {
|
||||
double snr = calculate_attenuation(rec, parent, ground_to_air);
|
||||
|
||||
if (rec->allowTransmissions()) {
|
||||
double snr = calculate_attenuation(rec, parent, ground_to_air);
|
||||
if (snr <= 0)
|
||||
return;
|
||||
if (snr > 0 && snr < 12) {
|
||||
|
@ -749,8 +751,6 @@ void FGATCController::transmit(FGTrafficRecord * rec, FGAirportDynamics *parent,
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
if (rec->allowTransmissions()) {
|
||||
fgSetString("/sim/messages/atc", text.c_str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue