mirror of
https://github.com/libretro/libretro-prboom.git
synced 2024-11-27 02:00:49 +00:00
Fix menu skull blinking
This commit is contained in:
parent
d8a6b1101a
commit
d9d59f7909
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user