Skip to content

Commit

Permalink
- fixed: SW's intro video must not stop playing music.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 3, 2023
1 parent 7c9de2a commit 2a9a503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wadsrc/static/zscript/engine/screenjob.zs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -236,7 +237,7 @@ class MoviePlayerJob : SkippableScreenJob

override void Start()
{
System.StopMusic();
if (!(flag & MoviePlayer.NOMUSICCUTOFF)) System.StopMusic();
}


Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/games/sw/ui/screens.zs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 2a9a503

Please sign in to comment.