allow optionally skipping initial wipe in in-game intermissions

This commit is contained in:
Ricardo Luís Vaz Silva 2025-01-25 19:50:54 -03:00
commit 33bae944f7
9 changed files with 26 additions and 24 deletions

View file

@ -3121,10 +3121,10 @@ bool G_CheckDemoStatus (void)
return false;
}
void G_StartSlideshow(FLevelLocals *Level, FName whichone)
void G_StartSlideshow(FLevelLocals *Level, FName whichone, int state)
{
auto SelectedSlideshow = whichone == NAME_None ? Level->info->slideshow : whichone;
auto slide = F_StartIntermission(SelectedSlideshow);
auto slide = F_StartIntermission(SelectedSlideshow, state);
RunIntermission(nullptr, nullptr, slide, nullptr, [](bool)
{
primaryLevel->SetMusic();
@ -3139,7 +3139,7 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, StartSlideshow)
{
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
PARAM_NAME(whichone);
G_StartSlideshow(self, whichone);
G_StartSlideshow(self, whichone, FSTATE_InLevel);
return 0;
}