]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
host: Maintain sleep delta by making variable static, matching old behavior
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Jul 2020 03:20:14 +0000 (03:20 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Jul 2020 03:20:14 +0000 (03:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12867 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 354291ea12213ca38b8c58bd79f54a869e9ebcc2..faadf05453d0cd966ec19a7413a469002766c50b 100644 (file)
--- 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);