Fixed major bug in time wrap code, would have not advanced clock at all after wrap...
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Jun 2002 19:38:52 +0000 (19:38 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Jun 2002 19:38:52 +0000 (19:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1953 d7cf8633-e32d-0410-b094-e92efae38249

sys_linux.c
sys_win.c

index 90c959b..297289f 100644 (file)
@@ -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;
 }
index 7ec988c..3a65ba7 100644 (file)
--- 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;
 }