]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't limit lerps to 100ms in demo playback
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 17 May 2007 19:04:55 +0000 (19:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 17 May 2007 19:04:55 +0000 (19:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7307 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 4d7c814188acd9ef3313925a9ac06fbe4d7b144d..5c80f8a7fd1e1d09c5be680f535eb18a7cdbb999 100644 (file)
@@ -2833,12 +2833,13 @@ extern cvar_t slowmo;
 static void CL_NetworkTimeReceived(double newtime)
 {
        double timehigh;
-       cl.mtime[1] = max(cl.mtime[0], newtime - 0.1);
+       cl.mtime[1] = cl.mtime[0];
        cl.mtime[0] = newtime;
        if (cls.timedemo || (cl.islocalgame && !sv_fixedframeratesingleplayer.integer) || cl.mtime[1] == cl.mtime[0] || cls.signon < SIGNONS)
                cl.time = cl.mtime[1] = newtime;
        else if (cls.protocol != PROTOCOL_QUAKEWORLD && !cls.demoplayback)
        {
+               cl.mtime[1] = max(cl.mtime[1], cl.mtime[0] - 0.1);
                if (developer.integer >= 100 && vid_activewindow)
                {
                        if (cl.time < cl.mtime[1] - (cl.mtime[0] - cl.mtime[1]))