Fix gif recording

This commit is contained in:
Sally Coolatta 2022-03-28 00:25:52 -04:00
parent 74eac3e3f2
commit db7e71d418

View file

@ -806,13 +806,14 @@ void D_SRB2Loop(void)
HW3S_BeginFrameUpdate();
#endif
if (realtics > 0 || singletics)
{
// don't skip more than 10 frames at a time
// (fadein / fadeout cause massive frame skip!)
if (realtics > 8)
realtics = 1;
// process tics (but maybe not if realtic == 0)
if (realtics > 0 || singletics)
ticked = TryRunTics(realtics);
if (lastdraw || singletics || gametic > rendergametic)
@ -826,6 +827,7 @@ void D_SRB2Loop(void)
{
doDisplay = true;
}
}
if (interp)
{
@ -894,13 +896,10 @@ void D_SRB2Loop(void)
D_Display();
}
if (doDisplay)
{
if (moviemode)
M_SaveFrame();
if (takescreenshot) // Only take screenshots after drawing.
M_DoScreenShot();
}
// consoleplayer -> displayplayers (hear sounds from viewpoint)
S_UpdateSounds(); // move positional sounds