Small mistake

This commit is contained in:
Jaime Passos 2019-11-15 19:36:25 -03:00
parent 5b0730839b
commit 55c42d9cb7
3 changed files with 26 additions and 10 deletions

View File

@ -172,7 +172,7 @@ void F_WipeStartScreen(void);
void F_WipeEndScreen(void); void F_WipeEndScreen(void);
void F_RunWipe(UINT8 wipetype, boolean drawMenu); void F_RunWipe(UINT8 wipetype, boolean drawMenu);
void F_WipeTicker(void); void F_WipeTicker(void);
void F_WipeTitleCard(void); void F_WipeStageTitle(void);
#define F_WipeColorFill(c) V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, (wipecolorfill = c)) #define F_WipeColorFill(c) V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, (wipecolorfill = c))
tic_t F_GetWipeLength(UINT8 wipetype); tic_t F_GetWipeLength(UINT8 wipetype);
boolean F_WipeExists(UINT8 wipetype); boolean F_WipeExists(UINT8 wipetype);

View File

@ -18,6 +18,7 @@
#include "r_draw.h" // transtable #include "r_draw.h" // transtable
#include "p_pspr.h" // tr_transxxx #include "p_pspr.h" // tr_transxxx
#include "p_local.h"
#include "w_wad.h" #include "w_wad.h"
#include "z_zone.h" #include "z_zone.h"
@ -25,6 +26,7 @@
#include "m_menu.h" #include "m_menu.h"
#include "console.h" #include "console.h"
#include "d_main.h" #include "d_main.h"
#include "g_game.h"
#include "m_misc.h" // movie mode #include "m_misc.h" // movie mode
#include "doomstat.h" #include "doomstat.h"
@ -187,17 +189,27 @@ static fademask_t *F_GetFadeMask(UINT8 masknum, UINT8 scrnnum) {
return NULL; return NULL;
} }
void F_WipeTitleCard(void) /** Draw the stage title.
*/
void F_WipeStageTitle(void)
{ {
if (wipestyle == WIPESTYLE_LEVEL if (wipestyle == WIPESTYLE_LEVEL
&& (!titlemapinaction) && (!titlemapinaction)
&& (wipestyleflags & WSF_FADEIN) && (wipestyleflags & WSF_FADEIN)
&& *mapheaderinfo[gamemap-1]->lvlttl != '\0' && *mapheaderinfo[gamemap-1]->lvlttl != '\0'
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
&& LUA_HudEnabled(hud_stagetitle) && LUA_HudEnabled(hud_stagetitle)
#endif #endif
) )
{
stplyr = &players[consoleplayer];
ST_drawLevelTitle(TICRATE); ST_drawLevelTitle(TICRATE);
if (splitscreen)
{
stplyr = &players[secondarydisplayplayer];
ST_drawLevelTitle(TICRATE);
}
}
} }
/** Wipe ticker /** Wipe ticker
@ -344,7 +356,8 @@ static void F_DoWipe(fademask_t *fademask)
free(scrxpos); free(scrxpos);
free(scrypos); free(scrypos);
} }
F_WipeTitleCard(); if (wipestyle == WIPESTYLE_LEVEL)
F_WipeStageTitle();
} }
#endif #endif
@ -460,7 +473,8 @@ void F_RunWipe(UINT8 wipetype, boolean drawMenu)
#endif #endif
} }
// Works On My Machine seal of approval /** Run and display the fade with the level.
*/
void F_WipeTicker(void) void F_WipeTicker(void)
{ {
#ifndef NOWIPE #ifndef NOWIPE
@ -524,6 +538,8 @@ tic_t F_GetWipeLength(UINT8 wipetype)
#endif #endif
} }
/** Does the specified wipe exist?
*/
boolean F_WipeExists(UINT8 wipetype) boolean F_WipeExists(UINT8 wipetype)
{ {
#ifdef NOWIPE #ifdef NOWIPE

View File

@ -7090,7 +7090,7 @@ void HWR_DoLevelWipe(UINT8 wipenum, UINT8 scrnnum, UINT8 colfill)
HWR_GetFadeMask(wipelumpnum); HWR_GetFadeMask(wipelumpnum);
HWD.pfnDoScreenWipeLevel(); HWD.pfnDoScreenWipeLevel();
F_WipeTitleCard(); F_WipeStageTitle();
#endif #endif
} }