From 316e6605bee070ba860d6b11cee7e2bb260715f5 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 6 Oct 2008 21:13:36 +0000 Subject: [PATCH] fixed demo playback jerkiness --- src/engine/client/ec_client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index 3e7e8c271..7e5c55ae2 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -1238,6 +1238,11 @@ static void client_pump_network() static void client_democallback(DEMOREC_CHUNK chunk, void *data) { /* dbg_msg("client/playback", "got %c%c%c%c", chunk.type[0], chunk.type[1], chunk.type[2], chunk.type[3]); */ + + /* update ticks, they could have changed */ + const DEMOREC_PLAYBACKINFO *info = demorec_playback_info(); + current_tick = info->current_tick; + prev_tick = info->previous_tick; if(mem_comp(chunk.type, "SNAP", 4) == 0) { @@ -1260,7 +1265,6 @@ static void client_democallback(DEMOREC_CHUNK chunk, void *data) if(!sys) modc_message(msg); } - } const DEMOPLAYBACK_INFO *client_demoplayer_getinfo()