Fixed titlemap wipe lasting too long/happening twice over

This commit is contained in:
toasterbabe 2017-03-28 17:54:54 +01:00
parent ded781ddfa
commit 5b595c0ecc
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

@ -1427,6 +1427,7 @@ void F_StartTitleScreen(void)
if (titlemap)
{
gamestate_t prevwipegamestate = wipegamestate;
titlemapinaction = true;
gamemap = titlemap;
@ -1437,6 +1438,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
{