]> 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 1e8885c3590bae3729c08368d30f8c4b45326020..066f0262b0e56d85f14bc3df5ed308221a9f7d9d 100644 (file)
@@ -222,12 +222,12 @@ setFreeze (bool f)
     frozen = f;
 
     // Stop sound on a pause
-    SGSoundMgr *s = globals->get_soundmgr();
-    if ( s != NULL ) {
+    SGSoundMgr *smgr = globals->get_soundmgr();
+    if ( smgr != NULL ) {
         if ( f ) {
-            s->pause();
-        } else if (!fgGetBool("/sim/sound/pause")) {
-            s->resume();
+            smgr->suspend();
+        } else if (fgGetBool("/sim/sound/working")) {
+            smgr->resume();
         }
     }
 }