]> git.mxchange.org Git - flightgear.git/commitdiff
Don't play DME ident if no colocated DME.
authorcurt <curt>
Sat, 10 Mar 2001 00:06:39 +0000 (00:06 +0000)
committercurt <curt>
Sat, 10 Mar 2001 00:06:39 +0000 (00:06 +0000)
src/Cockpit/radiostack.cxx
src/Main/main.cxx

index 8b3681c3144c12ab17f8c5579b0945063a8b2997..4c5bef2489b0112b0974d12baf203385a2405670 100644 (file)
@@ -274,7 +274,7 @@ FGRadioStack::update()
                    globals->get_soundmgr()->play_once( "nav1-vor-ident" );
                    ++nav1_play_count;
                }
-           } else if ( nav1_play_count < 5 ) {
+           } else if ( nav1_play_count < 5 && nav1_has_dme ) {
                // play DME ident
                if ( !globals->get_soundmgr()->is_playing("nav1-vor-ident") &&
                     !globals->get_soundmgr()->is_playing("nav1-dme-ident") ) {
index 9321b9d63c6e0c4e3de603c28c50e5d2b1402812..bab4f7e917dfcbde26c7ec3da87a01d27c39e8b1 100644 (file)
@@ -1192,10 +1192,10 @@ static void fgIdleFunction ( void ) {
                    << "  Bps = " << s1->get_sample()->getBps()
                    << "  Stereo = " << s1->get_sample()->getStereo() );
 
-           // s2 = new FGSimpleSound( "Sounds/corflaps.wav" );
-           FGMorse mmm;
-           mmm.init();
-           s2 = mmm.make_ident( "JLI" );
+           s2 = new FGSimpleSound( "Sounds/corflaps.wav" );
+           // FGMorse mmm;
+           // mmm.init();
+           // s2 = mmm.make_ident( "JLI" );
            s2->set_volume( 0.3 );
            globals->get_soundmgr()->add( s2, "flaps" );
        }