Attract, Credits: do not spend more than 2 seconds real time skipping forward in a replay

This commit is contained in:
James R 2024-03-18 02:39:46 -07:00
parent 0ce93b2d96
commit f1df1b8555
2 changed files with 4 additions and 0 deletions

View file

@ -1817,6 +1817,8 @@ loadreplay:
attractcountdown = min(30*TICRATE, brief->time);
g_fast_forward = min(table[index], brief->time - attractcountdown);
// Slow computers, don't wait all day
g_fast_forward_clock_stop = I_GetTime() + 2*TICRATE;
// Show title screen music credit at beginning of demo
attractcredit = true;
}

View file

@ -525,6 +525,8 @@ static boolean F_CreditsPlayDemo(void)
G_DoPlayDemoEx("", (brief->wad << 16) | brief->lump);
g_fast_forward = 30 * TICRATE;
// Slow computers, don't wait all day
g_fast_forward_clock_stop = I_GetTime() + 2 * TICRATE;
g_credits.demo_exit = 0;
return true;
}