diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 617309335..171a9651c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,9 @@ D2X-Rebirth Changelog +20080615 +-------- +main/newdemo.c: Better call for DoJasonInterpolate in demo code (hopefully) + 20080612 -------- README.txt, main/collide.c, main/multi.c, main/netdrv_udp.c, main/network.c, main/state.c: Improved Player relay for Endlevel status; Fixed leaving when UDP hosts leaves; Fixed multi_frame_calling while demos since demos can be Game_mode & GM_MULTI; Re-added lost collision fix between robots and reactor; Made state_defaut_item static so selected state slot stays selected diff --git a/main/newdemo.c b/main/newdemo.c index dca2215f0..21b77c3f4 100644 --- a/main/newdemo.c +++ b/main/newdemo.c @@ -205,6 +205,7 @@ fix nd_playback_total; fix nd_recorded_total; fix nd_recorded_time; sbyte playback_style; +sbyte First_time_playback=1; fix JasonPlaybackTotal=0; @@ -3196,6 +3197,7 @@ void newdemo_start_playback(char * filename) #ifdef NETWORK change_playernum_to(0); #endif + First_time_playback=1; JasonPlaybackTotal=0; Newdemo_flying_guided=0; @@ -3399,7 +3401,7 @@ void DoJasonInterpolate (fix recorded_time) JasonPlaybackTotal+=FrameTime; - if (recorded_time > 0) + if (!First_time_playback) { the_delay=(recorded_time - FrameTime); @@ -3413,6 +3415,7 @@ void DoJasonInterpolate (fix recorded_time) } } } + First_time_playback=0; } #ifdef MACINTOSH