]> git.mxchange.org Git - flightgear.git/commitdiff
Don't send repeating messages (ATIS) to the /sim/messages/atc property.
authormfranz <mfranz>
Thu, 9 Feb 2006 19:15:49 +0000 (19:15 +0000)
committermfranz <mfranz>
Thu, 9 Feb 2006 19:15:49 +0000 (19:15 +0000)
src/ATC/ATC.cxx

index 973783aab80c7d55e0acdfe28d22f4c4a7d4d159..b95d0008563bb480e0c9ce714acfe989f66798f1 100644 (file)
@@ -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) {