From d9d59f7909cb363c6793635b1868b6766af0658d Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Mon, 17 Feb 2020 11:49:58 +0100 Subject: [PATCH] Fix menu skull blinking --- src/d_client.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/d_client.c b/src/d_client.c index faa2c98..26eaa0e 100644 --- a/src/d_client.c +++ b/src/d_client.c @@ -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++; }