- allow game's clock to keep running while paused (restores interpolations/animations in menus).

This commit is contained in:
Mitchell Richters 2020-05-07 09:39:48 +10:00 committed by Christoph Oelckers
parent 401e87f3d9
commit 8730bd9dda
4 changed files with 4 additions and 4 deletions

View file

@ -5911,7 +5911,7 @@ MAIN_LOOP_RESTART:
if (M_Active() || GUICapture || ud.pause_on != 0)
{
totalclock = ototalclock + TICSPERFRAME;
ototalclock = totalclock - TICSPERFRAME;
buttonMap.ResetButtonStates();
}
else

View file

@ -2339,7 +2339,7 @@ GAMELOOP:
if (M_Active() || GUICapture || bPause)
{
totalclock = tclocks + 4;
tclocks = totalclock - 4;
buttonMap.ResetButtonStates();
}
else

View file

@ -7294,7 +7294,7 @@ MAIN_LOOP_RESTART:
if (M_Active() || GUICapture || ud.pause_on != 0)
{
totalclock = ototalclock + TICSPERFRAME;
ototalclock = totalclock - TICSPERFRAME;
buttonMap.ResetButtonStates();
}
else

View file

@ -2528,7 +2528,7 @@ void RunLevel(void)
if (M_Active() || GUICapture || GamePaused)
{
totalclock = ototalclock + (120 / synctics);
ototalclock = (int)totalclock - (120 / synctics);
buttonMap.ResetButtonStates();
}
else