mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Small mistake
This commit is contained in:
parent
5b0730839b
commit
55c42d9cb7
3 changed files with 26 additions and 10 deletions
|
@ -172,7 +172,7 @@ void F_WipeStartScreen(void);
|
|||
void F_WipeEndScreen(void);
|
||||
void F_RunWipe(UINT8 wipetype, boolean drawMenu);
|
||||
void F_WipeTicker(void);
|
||||
void F_WipeTitleCard(void);
|
||||
void F_WipeStageTitle(void);
|
||||
#define F_WipeColorFill(c) V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, (wipecolorfill = c))
|
||||
tic_t F_GetWipeLength(UINT8 wipetype);
|
||||
boolean F_WipeExists(UINT8 wipetype);
|
||||
|
|
22
src/f_wipe.c
22
src/f_wipe.c
|
@ -18,6 +18,7 @@
|
|||
|
||||
#include "r_draw.h" // transtable
|
||||
#include "p_pspr.h" // tr_transxxx
|
||||
#include "p_local.h"
|
||||
#include "w_wad.h"
|
||||
#include "z_zone.h"
|
||||
|
||||
|
@ -25,6 +26,7 @@
|
|||
#include "m_menu.h"
|
||||
#include "console.h"
|
||||
#include "d_main.h"
|
||||
#include "g_game.h"
|
||||
#include "m_misc.h" // movie mode
|
||||
|
||||
#include "doomstat.h"
|
||||
|
@ -187,7 +189,9 @@ static fademask_t *F_GetFadeMask(UINT8 masknum, UINT8 scrnnum) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void F_WipeTitleCard(void)
|
||||
/** Draw the stage title.
|
||||
*/
|
||||
void F_WipeStageTitle(void)
|
||||
{
|
||||
if (wipestyle == WIPESTYLE_LEVEL
|
||||
&& (!titlemapinaction)
|
||||
|
@ -197,7 +201,15 @@ void F_WipeTitleCard(void)
|
|||
&& LUA_HudEnabled(hud_stagetitle)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
stplyr = &players[consoleplayer];
|
||||
ST_drawLevelTitle(TICRATE);
|
||||
if (splitscreen)
|
||||
{
|
||||
stplyr = &players[secondarydisplayplayer];
|
||||
ST_drawLevelTitle(TICRATE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Wipe ticker
|
||||
|
@ -344,7 +356,8 @@ static void F_DoWipe(fademask_t *fademask)
|
|||
free(scrxpos);
|
||||
free(scrypos);
|
||||
}
|
||||
F_WipeTitleCard();
|
||||
if (wipestyle == WIPESTYLE_LEVEL)
|
||||
F_WipeStageTitle();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -460,7 +473,8 @@ void F_RunWipe(UINT8 wipetype, boolean drawMenu)
|
|||
#endif
|
||||
}
|
||||
|
||||
// Works On My Machine seal of approval
|
||||
/** Run and display the fade with the level.
|
||||
*/
|
||||
void F_WipeTicker(void)
|
||||
{
|
||||
#ifndef NOWIPE
|
||||
|
@ -524,6 +538,8 @@ tic_t F_GetWipeLength(UINT8 wipetype)
|
|||
#endif
|
||||
}
|
||||
|
||||
/** Does the specified wipe exist?
|
||||
*/
|
||||
boolean F_WipeExists(UINT8 wipetype)
|
||||
{
|
||||
#ifdef NOWIPE
|
||||
|
|
|
@ -7090,7 +7090,7 @@ void HWR_DoLevelWipe(UINT8 wipenum, UINT8 scrnnum, UINT8 colfill)
|
|||
HWR_GetFadeMask(wipelumpnum);
|
||||
|
||||
HWD.pfnDoScreenWipeLevel();
|
||||
F_WipeTitleCard();
|
||||
F_WipeStageTitle();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue