Fix renderdeltatics with new timing data

This commit is contained in:
Eidolon 2022-04-16 00:41:34 -05:00
parent a56a57b3d1
commit 84f62f91f4

View file

@ -897,12 +897,7 @@ void D_SRB2Loop(void)
}
// renderdeltatics is a bit awkard to evaluate, since the system time interface is whole tic-based
renderdeltatics = realtics * FRACUNIT;
if (entertimefrac > rendertimefrac)
renderdeltatics += entertimefrac - rendertimefrac;
else
renderdeltatics -= rendertimefrac - entertimefrac;
renderdeltatics = FloatToFixed(entertime - prevtime);
rendertimefrac = entertimefrac;
}