Prevent input during intro wipes to visual errors
If you press a button to skip during a wipe it turns fully white / black on the spot making it look really ugly
This commit is contained in:
parent
0dc7f87b7e
commit
5ee0e0d8c6
2 changed files with 3 additions and 3 deletions
|
|
@ -679,7 +679,7 @@ dedipostwipe:
|
|||
if (rendermode != render_none)
|
||||
F_WipeEndScreen();
|
||||
|
||||
F_RunWipe(wipetypepost, gamestate != GS_TIMEATTACK);
|
||||
F_RunWipe(wipetypepost, gamestate != GS_TIMEATTACK && gamestate != GS_INTRO);
|
||||
|
||||
// reset counters so timedemo doesn't count the wipe duration
|
||||
if (demo.timing)
|
||||
|
|
@ -851,7 +851,7 @@ void D_WipeLoop(wipelooptype_t type, UINT8 wipetype, boolean drawMenu)
|
|||
nowtime = lastwipetic = I_GetTime();
|
||||
endtime = nowtime + endtimes[type];
|
||||
|
||||
if (gamestate != GS_TITLESCREEN && gamestate != GS_TIMEATTACK)
|
||||
if (gamestate != GS_TITLESCREEN && gamestate != GS_TIMEATTACK && gamestate != GS_INTRO)
|
||||
drawMenu = true;
|
||||
|
||||
WipeInAction = 1 + !drawMenu;
|
||||
|
|
|
|||
|
|
@ -1577,7 +1577,7 @@ boolean G_Responder(event_t *ev)
|
|||
// Intro
|
||||
else if (gamestate == GS_INTRO)
|
||||
{
|
||||
if (F_IntroResponder(ev))
|
||||
if (F_IntroResponder(ev) && !WipeInAction)
|
||||
{
|
||||
D_StartTitle();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue