From 098645b2466ede85e63e5d5372d2d8e725ed12ee Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Thu, 13 Jun 2002 19:38:52 +0000 Subject: [PATCH] Fixed major bug in time wrap code, would have not advanced clock at all after wrap. Thanks to Mercury for pointing out the bug. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1953 d7cf8633-e32d-0410-b094-e92efae38249 --- sys_linux.c | 4 +--- sys_win.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys_linux.c b/sys_linux.c index 90c959b9..297289f2 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -182,10 +182,8 @@ double Sys_DoubleTime (void) if (newtime < oldtime) Con_Printf("Sys_DoubleTime: time running backwards??\n"); else - { curtime += newtime - oldtime; - oldtime = newtime; - } + oldtime = newtime; return curtime; } diff --git a/sys_win.c b/sys_win.c index 7ec988cc..3a65ba78 100644 --- a/sys_win.c +++ b/sys_win.c @@ -328,10 +328,8 @@ double Sys_DoubleTime (void) if (newtime < oldtime) Con_Printf("Sys_DoubleTime: time running backwards??\n"); else - { curtime += newtime - oldtime; - oldtime = newtime; - } + oldtime = newtime; return curtime; } -- 2.39.2