]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Release the mouse during loading screen
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 21650a24c9f1f190f0349e80c9b8c93bd0fe56cf..e34f712bebb2e148456af2f1e7afe2a71adb7739 100644 (file)
--- a/host.c
+++ b/host.c
@@ -134,7 +134,7 @@ void Host_Error (const char *error, ...)
        if (cls.state == ca_dedicated)
                Sys_Error ("Host_Error: %s",hosterrorstring2);  // dedicated servers exit
 
-       CL_Disconnect (false, NULL);
+       CL_Disconnect();
        cls.demonum = -1;
 
        hosterror = false;
@@ -681,7 +681,11 @@ static inline void Host_Sleep(double time)
                // TODO can we do the same for ServerFrame? Probably not.
        }
        else
+       {
+               if (cls.state != ca_dedicated)
+                       Curl_Select(&time);
                Sys_Sleep((int)time);
+       }
        delta = Sys_DirtyTime() - time0;
        if (delta < 0 || delta >= 1800)
                delta = 0;