]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/fg_fx.cxx
Fix the temperature computation.
[flightgear.git] / src / Sound / fg_fx.cxx
index cb78616e891d921bb5aa5fdec8099bd56bc137ef..caff002e224a8e41a9754cb32040e254877e2517 100644 (file)
@@ -202,13 +202,12 @@ FGFX::play_message( SGSoundSample *_sample )
 void
 FGFX::play_message( const string path, const string fname, double volume )
 {
-    if (globals->get_soundmgr()->is_working() == false) {
-        return;
+    if (globals->get_soundmgr()->is_working() == true) {
+        SGSoundSample *sample;
+        sample = new SGSoundSample( path.c_str(), fname.c_str() );
+        sample->set_volume( volume );
+        play_message( sample );
     }
-    SGSoundSample *sample;
-    sample = new SGSoundSample( path.c_str(), fname.c_str() );
-    sample->set_volume( volume );
-    play_message( sample );
 }
 
 void