From 846fcc276c68a6d6a01ff0b3697746e8b76c86e6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 3 Feb 2021 18:24:15 +0900 Subject: [PATCH] [nq] Allow free-fps for demo playback I still need to look into making physics (and network, I imagine) work with unlimited frame rates, but this gets in what I need for now. --- nq/source/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nq/source/host.c b/nq/source/host.c index dba8202e4..bb4721677 100644 --- a/nq/source/host.c +++ b/nq/source/host.c @@ -529,7 +529,7 @@ Host_FilterTime (float time) //FIXME not having the framerate cap is nice, but it breaks net play timedifference = (timescale / 72.0) - (realtime - oldrealtime); - if (!cls.timedemo && (timedifference > 0)) + if (!cls.demoplayback && (timedifference > 0)) return timedifference; // framerate is too high host_frametime = realtime - oldrealtime; @@ -541,7 +541,7 @@ Host_FilterTime (float time) if (host_framerate->value > 0) host_frametime = host_framerate->value; else // don't allow really long or short frames - host_frametime = bound (0.001, host_frametime, 0.1); + host_frametime = bound (0.000, host_frametime, 0.1); return 0; }