]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIPlane.cxx
don't set the callsign, but use the set one
[flightgear.git] / src / ATC / AIPlane.cxx
index a20bffcb35426dea8722c4b9569fcf0ac24f4258..3bcb4e5482d073c4f79a9b1984256782e9c025d6 100644 (file)
@@ -182,6 +182,7 @@ void FGAIPlane::ProcessCallback(int code) {
 // 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 FGAIPlane::Render(const string& refname, bool repeating) {
+       fgSetString("/sim/messages/ai-plane", pending_transmission.c_str());
 #ifdef ENABLE_AUDIO_SUPPORT
        voice = (voiceOK && fgGetBool("/sim/sound/voice"));
        if(voice) {