mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 17:11:33 +00:00
Do fade-out when starting intro if played from the title screen
This commit is contained in:
parent
d057b79552
commit
924a5eb34d
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue