mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 22:21:05 +00:00
Fix renderdeltatics with new timing data
This commit is contained in:
parent
a56a57b3d1
commit
84f62f91f4
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue