Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prboom2/src/f_finale.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ float Get_TextSpeed(void)
// killough 5/10/98: add back v1.9 demo compatibility
//

static dboolean F_ShowCast(void)
dboolean F_ShowCast(void)
{
return gamemap == 30 ||
(gamemission == pack_nerve && allow_incompatibility && gamemap == 8) ||
Expand Down
2 changes: 2 additions & 0 deletions prboom2/src/f_finale.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ void F_Ticker (void);
/* Called by main loop. */
void F_Drawer (void);

dboolean F_ShowCast(void);

void F_StartFinale (void);
void F_StartCast (const char* background, const char* music, dboolean loop_music);
void F_StartScroll (const char* right, const char* left, const char* music, dboolean loop_music);
Expand Down
18 changes: 13 additions & 5 deletions prboom2/src/wi_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "doomstat.h"
#include "m_random.h"
#include "w_wad.h"
#include "f_finale.h"
#include "g_game.h"
#include "r_main.h"
#include "v_video.h"
Expand Down Expand Up @@ -968,6 +969,15 @@ void WI_End(void)
WI_endStats();
}

#define WI_LONGER_NOW_ENTERING (allow_incompatibility && gamemode == commercial && !netgame)

void WI_wait(void)
{
if (WI_LONGER_NOW_ENTERING && !F_ShowCast())
cnt = TICRATE + 10;
else
cnt = 10;
}

// ====================================================================
// WI_initNoState
Expand All @@ -979,7 +989,7 @@ void WI_initNoState(void)
{
state = NoState;
acceleratestage = 0;
cnt = 10;
WI_wait();
}


Expand Down Expand Up @@ -1032,10 +1042,9 @@ static void WI_drawTimeStats(int cnt_time, int cnt_total_time, int cnt_par)
//
void WI_updateNoState(void)
{

WI_updateAnimatedBack();

if (!--cnt)
if (!--cnt || (WI_LONGER_NOW_ENTERING && acceleratestage))
G_WorldDone();
}

Expand Down Expand Up @@ -1169,8 +1178,7 @@ void WI_drawShowNextLoc(void)
return; // MAP08 end game

// draws which level you are entering..
if ( (gamemode != commercial)
|| wbs->next != 30) // check for MAP30 end game
if ( (gamemode != commercial) || (gamemap != 30) ) // allows for MAP31 entering screen, if not MAP30
WI_drawEL();
}

Expand Down
Loading