Fix menu skull blinking

This commit is contained in:
Fernando Carmona Varo 2020-02-17 11:49:58 +01:00
parent d8a6b1101a
commit d9d59f7909

View File

@ -534,24 +534,24 @@ void D_BuildNewTiccmds(void)
void TryRunTics(void)
{
fixed_t overflow = 0;
// Increment tic fraction if game is ongoing
if ((demoplayback || !menuactive) && !paused)
{
tic_vars.frac += tic_vars.frac_step;
if(tic_vars.frac > FRACUNIT) {
overflow = tic_vars.frac - FRACUNIT;
tic_vars.frac = FRACUNIT;
}
// Increment tic fraction
tic_vars.frac += tic_vars.frac_step;
if(tic_vars.frac > FRACUNIT) {
overflow = tic_vars.frac - FRACUNIT;
tic_vars.frac = FRACUNIT;
}
D_BuildNewTiccmds();
if(tic_vars.frac == FRACUNIT) {
tic_vars.frac = overflow;
if (advancedemo)
D_DoAdvanceDemo ();
if (!paused) {
if (advancedemo)
D_DoAdvanceDemo ();
G_Ticker ();
}
M_Ticker ();
G_Ticker ();
P_Checksum(gametic);
gametic++;
}