mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- allow game's clock to keep running while paused (restores interpolations/animations in menus).
This commit is contained in:
parent
401e87f3d9
commit
8730bd9dda
4 changed files with 4 additions and 4 deletions
|
@ -5911,7 +5911,7 @@ MAIN_LOOP_RESTART:
|
|||
|
||||
if (M_Active() || GUICapture || ud.pause_on != 0)
|
||||
{
|
||||
totalclock = ototalclock + TICSPERFRAME;
|
||||
ototalclock = totalclock - TICSPERFRAME;
|
||||
buttonMap.ResetButtonStates();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -2339,7 +2339,7 @@ GAMELOOP:
|
|||
|
||||
if (M_Active() || GUICapture || bPause)
|
||||
{
|
||||
totalclock = tclocks + 4;
|
||||
tclocks = totalclock - 4;
|
||||
buttonMap.ResetButtonStates();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -7294,7 +7294,7 @@ MAIN_LOOP_RESTART:
|
|||
|
||||
if (M_Active() || GUICapture || ud.pause_on != 0)
|
||||
{
|
||||
totalclock = ototalclock + TICSPERFRAME;
|
||||
ototalclock = totalclock - TICSPERFRAME;
|
||||
buttonMap.ResetButtonStates();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -2528,7 +2528,7 @@ void RunLevel(void)
|
|||
|
||||
if (M_Active() || GUICapture || GamePaused)
|
||||
{
|
||||
totalclock = ototalclock + (120 / synctics);
|
||||
ototalclock = (int)totalclock - (120 / synctics);
|
||||
buttonMap.ResetButtonStates();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue