]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/marker_beacon.cxx
proper sound orientation(?) and comment out velocity since it messes with OpenAL...
[flightgear.git] / src / Instrumentation / marker_beacon.cxx
index ccb8499e109631b5bb52790f76557d076bb9ae4a..d2e9774b702dacc4f0c6a81eaa4172d609e7fff5 100644 (file)
@@ -117,8 +117,9 @@ FGMarkerBeacon::init ()
     if (serviceable->getType() == simgear::props::NONE)
         serviceable->setBoolValue( true );
 
-    SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
+    SGSoundMgr *smgr = globals->get_soundmgr();
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
 
     morse.init();
     beacon.init();