]> git.jsancho.org Git - lugaru.git/commitdiff
Hack to stop all audio when the tutorial finishes, which stops the overlapping
authorRyan C. Gordon <icculus@icculus.org>
Wed, 24 Aug 2005 06:30:49 +0000 (06:30 +0000)
committerRyan C. Gordon <icculus@icculus.org>
Wed, 24 Aug 2005 06:30:49 +0000 (06:30 +0000)
 music on the level menu with the OpenAL renderer...

Source/GameTick.cpp

index 3393eeb12f541b8440cbf3f677f8dd6aebdc5c0f..790ddc375918bd19ccc6cfdcc9a451a61e8829c4 100644 (file)
@@ -10767,6 +10767,7 @@ void    Game::Tick()
                                                                        oldtemp2=temp2;
                                                                        if(tutorialstage>=51)
                                                                                if(findDistancefast(&temp,&player[0].coords)>=findDistancefast(&temp,&temp2)-1||findDistancefast(&temp3,&player[0].coords)<4){
+                                                   FSOUND_StopSound(FSOUND_ALL);  // hack...OpenAL renderer isn't stopping music after tutorial goes to level menu...
                                                                                        FSOUND_SetFrequency(FSOUND_ALL, 0.001);
 
                                                                                        PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);