New condition to switch to Interpolated demo playback - the old one did NOT make ANY sense at all

This commit is contained in:
zicodxx 2009-01-22 12:30:32 +00:00
parent 3699f316cc
commit 21738cdd2c
2 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20090122
--------
main/newdemo.c: New condition to switch to Interpolated demo playback - the old one did NOT make ANY sense at all
20090117
--------
arch/sdl/mouse.c, main/menu.c, main/playsave.c, main/playsave.h: Made MouseFilter selectable over Controls menu while defaulting to OFF - Saved in PLX

View file

@ -2652,17 +2652,14 @@ void newdemo_playback_one_frame()
if (nd_playback_total > nd_recorded_total)
playback_style = SKIP_PLAYBACK;
if ((nd_playback_total * INTERPOL_FACTOR) < nd_recorded_total) {
//if ((nd_playback_total * INTERPOL_FACTOR) < nd_recorded_total) // no matter how we look at it: this does not make ANY sense!
if (nd_recorded_total > 0 && nd_recorded_time > 0)
{
playback_style = INTERPOLATE_PLAYBACK;
nd_playback_total = nd_recorded_total + FrameTime; // baseline playback time
base_interpol_time = nd_recorded_total;
d_recorded = nd_recorded_time; // baseline delta recorded
}
else
{
if (NewdemoFrameCount > 0 && NewdemoFrameCount < 10)
newdemo_back_frames(1);
}
}
if ((playback_style == INTERPOLATE_PLAYBACK) && Newdemo_do_interpolate) {