Slightly refactor M_StartControlPanel

In anticipation of attempt to incorporate into CL_ABORT process
This commit is contained in:
toaster 2022-09-13 20:32:43 +01:00
parent 7f2d28ea33
commit 36f8ce8f78

View file

@ -925,11 +925,6 @@ void M_StartControlPanel(void)
menucmd[i].delay = MENUDELAYTIME;
}
// No instantly skipping the titlescreen.
// (We can change this timer later when extra animation is added.)
if (gamestate == GS_TITLESCREEN && finalecount < 1)
return;
// intro might call this repeatedly
if (menuactive)
{
@ -939,6 +934,11 @@ void M_StartControlPanel(void)
if (gamestate == GS_TITLESCREEN) // Set up menu state
{
// No instantly skipping the titlescreen.
// (We can change this timer later when extra animation is added.)
if (finalecount < 1)
return;
G_SetGamestate(GS_MENU);
gameaction = ga_nothing;