From 29d6f023ba9ed6a6660aeb574ea384a07c38e9c9 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 21 Jul 2012 22:27:19 +0000 Subject: [PATCH] don't honor cl.paused or host_framerate in demo playback (to fix Malice intro demos which otherwise get paused and stay there) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11833 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/host.c b/host.c index 72ed8b98..7bc799dd 100644 --- a/host.c +++ b/host.c @@ -961,13 +961,15 @@ void Host_Main(void) if (cls.demopaused) clframetime = 0; } + else + { + // host_framerate overrides all else + if (host_framerate.value) + clframetime = host_framerate.value; - // host_framerate overrides all else - if (host_framerate.value) - clframetime = host_framerate.value; - - if (cl.paused || (cl.islocalgame && (key_dest != key_game || key_consoleactive || cl.csqc_paused))) - clframetime = 0; + if (cl.paused || (cl.islocalgame && (key_dest != key_game || key_consoleactive || cl.csqc_paused))) + clframetime = 0; + } if (cls.timedemo) clframetime = cl.realframetime = cl_timer; -- 2.39.2