From 9992a082850304584c874ac8db578647deb445bf Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 27 Feb 2013 14:32:29 +0900 Subject: [PATCH] Make the timedemo related timers double. Their being float didn't cause noticeable trouble when time was 0-based, but with it 4Gs based, timedemo results got very weird. --- nq/include/client.h | 2 +- qw/include/client.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nq/include/client.h b/nq/include/client.h index 0bb80f003..e6dc80e97 100644 --- a/nq/include/client.h +++ b/nq/include/client.h @@ -116,7 +116,7 @@ typedef struct { qboolean timedemo; int td_lastframe; // to meter out one message a frame int td_startframe; // host_framecount at start - float td_starttime; // realtime at second frame of timedemo + double td_starttime; // realtime at second frame of timedemo } client_static_t; extern client_static_t cls; diff --git a/qw/include/client.h b/qw/include/client.h index d737aa938..23d22e893 100644 --- a/qw/include/client.h +++ b/qw/include/client.h @@ -165,9 +165,9 @@ typedef struct { int prevtime; double basetime; qboolean timedemo; - float td_lastframe; // to meter out one message a frame + double td_lastframe; // to meter out one message a frame int td_startframe; // host_framecount at start - float td_starttime; // realtime at second frame of timedemo + double td_starttime; // realtime at second frame of timedemo } client_static_t; extern client_static_t cls;