From 6e65de251c43dcccca142de2c33312212378213e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 4 Jan 2016 20:42:22 +0900 Subject: [PATCH] Put qwaq's epoch back to 0. 4Gs causes a few problems at this stage. I really need to look into putting long and double into qc. --- tools/qwaq/qwaq-bi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/qwaq/qwaq-bi.c b/tools/qwaq/qwaq-bi.c index 918dfbd28..3c5964df7 100644 --- a/tools/qwaq/qwaq-bi.c +++ b/tools/qwaq/qwaq-bi.c @@ -68,7 +68,7 @@ static plugin_list_t client_plugin_list[] = { }; double con_frametime; -double con_realtime; +double con_realtime, basetime; double old_conrealtime; @@ -120,7 +120,7 @@ static SCR_Func bi_2dfuncs[] = { static void bi_refresh (progs_t *pr) { - con_realtime = Sys_DoubleTime (); + con_realtime = Sys_DoubleTime () - basetime; con_frametime = con_realtime - old_conrealtime; old_conrealtime = con_realtime; bi_rprogs = pr; @@ -205,4 +205,5 @@ BI_Init (progs_t *pr) S_Init (0, &con_frametime); //CDAudio_Init (); Con_NewMap (); + basetime = Sys_DoubleTime (); }