- fixed: SW's intro video must not stop playing music.

This commit is contained in:
Christoph Oelckers 2022-10-08 09:54:12 +02:00
parent ca521f8a1e
commit 416be99967
3 changed files with 4 additions and 2 deletions

View file

@ -55,6 +55,7 @@ protected:
{
NOSOUNDCUTOFF = 1,
FIXEDVIEWPORT = 2, // Forces fixed 640x480 screen size like for Blood's intros.
NOMUSICCUTOFF = 4,
};
int flags;

View file

@ -204,6 +204,7 @@ struct MoviePlayer native
{
NOSOUNDCUTOFF = 1,
FIXEDVIEWPORT = 2, // Forces fixed 640x480 screen size like for Blood's intros.
NOMUSICCUTOFF = 4,
}
native static MoviePlayer Create(String filename, Array<int> soundinfo, int flags, int frametime, int firstframetime, int lastframetime);
@ -236,7 +237,7 @@ class MoviePlayerJob : SkippableScreenJob
override void Start()
{
System.StopMusic();
if (!(flag & MoviePlayer.NOMUSICCUTOFF)) System.StopMusic();
}

View file

@ -381,7 +381,7 @@ class SWCutscenes ui
5, SWSnd.DIGI_INTRO_SLASH,
15, SWSnd.DIGI_INTRO_WHIRL);
runner.Append(new("SWDRealmsScreen").Init());
runner.Append(MoviePlayerJob.CreateWithSoundinfo("sw.anm", soundinfo, MoviePlayer.NOSOUNDCUTOFF, 8, 360, 128));
runner.Append(MoviePlayerJob.CreateWithSoundinfo("sw.anm", soundinfo, MoviePlayer.NOSOUNDCUTOFF | MoviePlayer.NOMUSICCUTOFF, 8, 360, 128));
}
}