mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 22:01:01 +00:00
Fixed titlemap wipe lasting too long/happening twice over
This commit is contained in:
parent
ded781ddfa
commit
5b595c0ecc
2 changed files with 4 additions and 1 deletions
|
@ -302,7 +302,7 @@ static void D_Display(void)
|
||||||
if (rendermode != render_none)
|
if (rendermode != render_none)
|
||||||
{
|
{
|
||||||
// Fade to black first
|
// 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)
|
&& wipedefs[wipedefindex] != UINT8_MAX)
|
||||||
{
|
{
|
||||||
F_WipeStartScreen();
|
F_WipeStartScreen();
|
||||||
|
|
|
@ -1427,6 +1427,7 @@ void F_StartTitleScreen(void)
|
||||||
|
|
||||||
if (titlemap)
|
if (titlemap)
|
||||||
{
|
{
|
||||||
|
gamestate_t prevwipegamestate = wipegamestate;
|
||||||
titlemapinaction = true;
|
titlemapinaction = true;
|
||||||
gamemap = titlemap;
|
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)
|
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
|
camera.subsector = NULL; // toast is filthy too
|
||||||
//CON_ClearHUD();
|
//CON_ClearHUD();
|
||||||
|
|
||||||
|
wipegamestate = prevwipegamestate;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue