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.
This commit is contained in:
Bill Currie 2013-02-27 14:32:29 +09:00
parent 8e86ce9de9
commit 9992a08285
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;