1
0
Fork 0

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:
James Turner 2021-08-02 09:21:07 +01:00
parent a79e6e46da
commit e58a06465c

View file

@ -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 =