mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- fixed: SW's intro video must not stop playing music.
This commit is contained in:
parent
ca521f8a1e
commit
416be99967
3 changed files with 4 additions and 2 deletions
|
@ -55,6 +55,7 @@ protected:
|
|||
{
|
||||
NOSOUNDCUTOFF = 1,
|
||||
FIXEDVIEWPORT = 2, // Forces fixed 640x480 screen size like for Blood's intros.
|
||||
NOMUSICCUTOFF = 4,
|
||||
};
|
||||
|
||||
int flags;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue