Do fade-out when starting intro if played from the title screen

This commit is contained in:
Lactozilla 2023-12-27 17:47:30 -03:00
parent d057b79552
commit 924a5eb34d

View file

@ -492,6 +492,8 @@ void F_StartIntro(void)
"\x80\n\xA9\xD2\xD2"
"\"All right, then\xAF... \xD2\xD2\xA7let's go!\"\n#");
boolean from_title = gamestate == GS_TITLESCREEN;
G_SetGamestate(GS_INTRO);
gameaction = ga_nothing;
paused = false;
@ -500,8 +502,19 @@ void F_StartIntro(void)
TitleCard_Stop();
intro_scenenum = 0;
intro_curtime = 0;
finalecount = animtimer = skullAnimCounter = stoptimer = 0;
timetonext = introscenetime[intro_scenenum];
if (from_title)
{
wipe_t wipe = {0};
wipe.style = F_WipeGetStyle(wipe.flags);
wipe.type = wipedefs[wipe_intro_toblack];
wipe.drawmenuontop = false;
wipe.holdframes = 35;
F_StartWipeParametrized(&wipe);
}
}
//