]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/ATC.cxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / ATCDCL / ATC.cxx
index 41c56e64844998beb1db3d754b6fdedbc169d315..10fb8971545d1b770ee226d835043493bfa6bf16 100644 (file)
@@ -35,8 +35,8 @@
 
 
 FGATC::FGATC() :
-       _voiceOK(false),
        _playing(false),
+       _voiceOK(false),
        _sgr(NULL),
        freqClear(true),
        receiving(false),
@@ -59,6 +59,7 @@ FGATC::FGATC() :
 {
        SGSoundMgr *smgr = globals->get_soundmgr();
        _sgr = smgr->find("atc", true);
+        _sgr->tie_to_listener();
 
        _volume = fgGetNode("/sim/sound/atc/volume", true);
        _enabled = fgGetNode("/sim/sound/atc/enabled", true);