]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
code-only change of the loading screen, no visual change
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 90282634e552f389fae6db66e7e321795864c2e7..0dea16e6331cb012c86798ebca635b3631639d15 100644 (file)
--- a/host.c
+++ b/host.c
@@ -619,7 +619,10 @@ void Host_Main(void)
        for (;;)
        {
                if (setjmp(host_abortframe))
+               {
+                       SCR_ClearLoadingScreen(false);
                        continue;                       // something bad happened, or the server disconnected
+               }
 
                oldrealtime = realtime;
                realtime = Sys_DoubleTime();
@@ -915,7 +918,7 @@ void Host_Main(void)
                                                        pass1+pass2+pass3, pass1, pass2, pass3);
                        }
                        wait = bound(0, host_sleep.value * 1000, 100000);
-                       if (wait >= 1)
+                       if (!cls.timedemo && wait >= 1)
                                Sys_Sleep((int)wait);
                }