]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix mispredictions when paused, or when console is down in singleplayer
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 10:29:30 +0000 (10:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 10:29:30 +0000 (10:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8911 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 02e1b72be4a7f972de5e4c32305bc1e360825fbd..de067d6bd628cd5e4e33f1ed1a37edd542dcbed2 100644 (file)
--- a/host.c
+++ b/host.c
@@ -858,6 +858,9 @@ void Host_Main(void)
                        if (host_framerate.value)
                                clframetime = host_framerate.value;
 
+                       if (cl.paused || (cl.islocalgame && (key_dest != key_game || key_consoleactive)))
+                               clframetime = 0;
+
                        if (cls.timedemo)
                                clframetime = cl.realframetime = cl_timer;