From c848bf5c0c1227328f6bc2337bfc871a84439308 Mon Sep 17 00:00:00 2001 From: "Timothy C. McGrath" Date: Thu, 6 Jun 2002 23:15:26 +0000 Subject: [PATCH] Fixed logging to work with realtime resets. Tim McGrath (Misty) --- qw/source/sv_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qw/source/sv_main.c b/qw/source/sv_main.c index 1c3a5dc39..3c7c7e0dc 100644 --- a/qw/source/sv_main.c +++ b/qw/source/sv_main.c @@ -565,12 +565,12 @@ SV_CheckLog (void) sz = &svs.log[svs.logsequence & 1]; - // bump sequence if allmost full, or ten minutes have passed and + // bump sequence if almost full, or ten minutes have passed and // there is something still sitting there if (sz->cursize > LOG_HIGHWATER - || (realtime - svs.logtime > LOG_FLUSH && sz->cursize)) { + || (Sys_DoubleTime () - svs.logtime > LOG_FLUSH && sz->cursize)) { // swap buffers and bump sequence - svs.logtime = realtime; + svs.logtime = Sys_DoubleTime (); svs.logsequence++; sz = &svs.log[svs.logsequence & 1]; sz->cursize = 0;