]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Major update, been neglecting CVS for some time...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index b419f8a963b8c75c55458689ec740051d1e6673d..2ba18dca9a9c278170398282a23ddf78a12fa17a 100644 (file)
--- a/host.c
+++ b/host.c
@@ -539,11 +539,16 @@ qboolean Host_FilterTime (double time)
                        return false;
        }
 
-       host_realframetime = host_frametime = realtime - oldrealtime; // LordHavoc: copy into host_realframetime as well
+       // LordHavoc: copy into host_realframetime as well
+       host_realframetime = host_frametime = realtime - oldrealtime;
        oldrealtime = realtime;
 
        if (cls.timedemo)
-               return true; // disable time effects
+       {
+               // disable time effects
+               cl.frametime = host_frametime;
+               return true;
+       }
 
        if (host_framerate.value > 0)
                host_frametime = host_framerate.value;