From: havoc Date: Sun, 12 Apr 2009 10:29:30 +0000 (+0000) Subject: fix mispredictions when paused, or when console is down in singleplayer X-Git-Tag: xonotic-v0.1.0preview~1700 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e4ddb7b56997b0c8b3c63075345ca1fb7200f16d;p=xonotic%2Fdarkplaces.git fix mispredictions when paused, or when console is down in singleplayer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8911 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index 02e1b72b..de067d6b 100644 --- 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;