AI ATC: only use audio if enabled in the dialog
Patch by Stefan Frank, check the dialog checkbox setting before sending messages to audio rather than text output.
This commit is contained in:
parent
a79e6e46da
commit
e58a06465c
1 changed files with 2 additions and 1 deletions
|
@ -812,7 +812,8 @@ void FGATCController::transmit(FGTrafficRecord * rec, FGAirportDynamics *parent,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (audible) {
|
const bool atcAudioEnabled = fgGetBool("/sim/sound/atc/enabled", false);
|
||||||
|
if (audible && atcAudioEnabled) {
|
||||||
double onBoardRadioFreq0 =
|
double onBoardRadioFreq0 =
|
||||||
fgGetDouble("/instrumentation/comm[0]/frequencies/selected-mhz");
|
fgGetDouble("/instrumentation/comm[0]/frequencies/selected-mhz");
|
||||||
double onBoardRadioFreq1 =
|
double onBoardRadioFreq1 =
|
||||||
|
|
Loading…
Reference in a new issue