File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ namespace OpenXcom
4040 */
4141IntroState::IntroState (Game *game, bool wasLetterBoxed) : State(game), _wasLetterBoxed(wasLetterBoxed)
4242{
43- _game->setVolume (Options::soundVolume, Options::soundVolume/2 , -1 );
43+ _oldVolume = Options::musicVolume;
44+ Options::musicVolume = Options::soundVolume;
45+ _game->setVolume (Options::soundVolume, Options::musicVolume, -1 );
4446 _introFile = CrossPlatform::getDataFile (" UFOINTRO/UFOINT.FLI" );
4547 _introSoundFileDOS = CrossPlatform::getDataFile (" SOUND/INTRO.CAT" );
4648 _introSoundFileWin = CrossPlatform::getDataFile (" SOUND/SAMPLE3.CAT" );
@@ -443,7 +445,7 @@ void IntroState::init()
443445 }
444446 _game->getScreen ()->clear ();
445447 _game->getScreen ()->flip ();
446-
448+ Options::musicVolume = _oldVolume;
447449 _game->setVolume (Options::soundVolume, Options::musicVolume, Options::uiVolume);
448450
449451#ifndef __NO_MUSIC
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class IntroState : public State
3232private:
3333 std::string _introFile, _introSoundFileDOS, _introSoundFileWin;
3434 bool _wasLetterBoxed;
35+ int _oldVolume;
3536public:
3637 // / Creates the Intro state.
3738 IntroState (Game *game, bool wasLetterBoxed);
You can’t perform that action at this time.
0 commit comments