From: cloudwalk Date: Thu, 23 Jul 2020 03:20:14 +0000 (+0000) Subject: host: Maintain sleep delta by making variable static, matching old behavior X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2b3d0b3e9308dbcfaba4876c8de70aad1cafe9f;p=xonotic%2Fdarkplaces.git 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 --- 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);