]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_props.cxx
OSG ref_ptr fix: use .get() explicitly.
[flightgear.git] / src / Main / fg_props.cxx
index e3340b8a42088a6a8da894c173d67ad18c30d879..066f0262b0e56d85f14bc3df5ed308221a9f7d9d 100644 (file)
@@ -221,17 +221,15 @@ setFreeze (bool f)
 {
     frozen = f;
 
-#if 0
     // Stop sound on a pause
-    SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
+    SGSoundMgr *smgr = globals->get_soundmgr();
     if ( smgr != NULL ) {
         if ( f ) {
             smgr->suspend();
-        } else if (!fgGetBool("/sim/sound/pause")) {
+        } else if (fgGetBool("/sim/sound/working")) {
             smgr->resume();
         }
     }
-#endif
 }