]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
host: Make delta non-static in Host_Sleep
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Apr 2021 16:46:15 +0000 (16:46 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Apr 2021 16:46:15 +0000 (16:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13116 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 1dc4b0d5b8d2c65dd569bad28d0f6d1b302e98bf..0c4da3c9aa75611ad8624866268b46779bd8f030 100644 (file)
--- a/host.c
+++ b/host.c
@@ -394,8 +394,7 @@ double Host_Frame(double time)
 
 static inline void Host_Sleep(double time)
 {
-       static double delta;
-       double time0;
+       double delta, time0;
 
        if(host_maxwait.value <= 0)
                time = min(time, 1000000.0);