Fixed titlemap wipe lasting too long/happening twice over

This commit is contained in:
toasterbabe 2017-03-28 17:54:54 +01:00 committed by yellowtd
parent 217f7ebd38
commit eea7dc4224
2 changed files with 4 additions and 1 deletions

View file

@ -302,7 +302,7 @@ static void D_Display(void)
if (rendermode != render_none)
{
// Fade to black first
if (gamestate != GS_LEVEL // fades to black on its own timing, always
if (!(gamestate == GS_LEVEL || (gamestate == GS_TITLESCREEN && titlemapinaction)) // fades to black on its own timing, always
&& wipedefs[wipedefindex] != UINT8_MAX)
{
F_WipeStartScreen();

View file

@ -1429,6 +1429,7 @@ void F_StartTitleScreen(void)
if (titlemap)
{
gamestate_t prevwipegamestate = wipegamestate;
titlemapinaction = true;
gamemap = titlemap;
@ -1439,6 +1440,8 @@ void F_StartTitleScreen(void)
players[displayplayer].playerstate = PST_DEAD; // Don't spawn the player in dummy (I'm still a filthy cheater)
camera.subsector = NULL; // toast is filthy too
//CON_ClearHUD();
wipegamestate = prevwipegamestate;
}
else
{