From c2b3d0b3e9308dbcfaba4876c8de70aad1cafe9f Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Thu, 23 Jul 2020 03:20:14 +0000 Subject: [PATCH] host: Maintain sleep delta by making variable static, matching old behavior git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12867 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host.c b/host.c index 354291ea..faadf054 100644 --- a/host.c +++ b/host.c @@ -436,7 +436,8 @@ double Host_Frame(double time) static inline void Host_Sleep(double time) { - double time0, delta; + static double delta; + double time0; if(host_maxwait.value <= 0) time = min(time, 1000000.0); -- 2.39.2