mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed even more jerkiness in the demo playback
This commit is contained in:
parent
316e6605be
commit
3159f795c1
|
@ -326,7 +326,7 @@ int demorec_playback_update()
|
|||
int64 curtick_start = (playbackinfo.current_tick)*freq/SERVER_TICK_SPEED;
|
||||
int64 prevtick_start = (playbackinfo.previous_tick)*freq/SERVER_TICK_SPEED;
|
||||
playbackinfo.intratick = (playbackinfo.current_time - prevtick_start) / (float)(curtick_start-prevtick_start);
|
||||
playbackinfo.ticktime = (playbackinfo.current_time - prevtick_start) / (float)freq;
|
||||
playbackinfo.ticktime = (playbackinfo.current_time - prevtick_start) / (freq/(float)SERVER_TICK_SPEED);
|
||||
}
|
||||
|
||||
if(playbackinfo.current_tick == playbackinfo.previous_tick ||
|
||||
|
|
Loading…
Reference in a new issue