Fixed logging to work with realtime resets.

Tim McGrath (Misty)
This commit is contained in:
Timothy C. McGrath 2002-06-06 23:15:26 +00:00
parent bd82405643
commit c848bf5c0c

View file

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