From 2a8111cc1103d8ce46558d58f8a3cb352344f2ea Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 9 Feb 2006 19:15:49 +0000 Subject: [PATCH] Don't send repeating messages (ATIS) to the /sim/messages/atc property. --- src/ATC/ATC.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ATC/ATC.cxx b/src/ATC/ATC.cxx index 973783aab..b95d00085 100644 --- a/src/ATC/ATC.cxx +++ b/src/ATC/ATC.cxx @@ -225,7 +225,11 @@ void FGATC::SetData(ATCData* d) { // The refname is a string to identify this sample to the sound manager // The repeating flag indicates whether the message should be repeated continuously or played once. void FGATC::Render(string& msg, const string& refname, bool repeating) { - fgSetString("/sim/messages/atc", msg.c_str()); + if (repeating) + fgSetString("/sim/messages/atis", msg.c_str()); + else + fgSetString("/sim/messages/atc", msg.c_str()); + #ifdef ENABLE_AUDIO_SUPPORT _voice = (_voiceOK && fgGetBool("/sim/sound/voice")); if(_voice) { -- 2.39.5