]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
dedicated server: don't call CL_UpdateScreen() and SCR_BeginLoadingPlaque()
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 18 Jul 2023 03:39:47 +0000 (13:39 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 18 Jul 2023 03:39:47 +0000 (13:39 +1000)
host.c

diff --git a/host.c b/host.c
index 8b64f9df9119ed61d93cce6360b6dc7a6acf52ee..43bfb2ff9cdf39ebbf5fe350abc7c74497667d50 100644 (file)
--- a/host.c
+++ b/host.c
@@ -501,12 +501,15 @@ static void Host_Init (void)
 
        Log_Start();
 
-       // put up the loading image so the user doesn't stare at a black screen...
-       SCR_BeginLoadingPlaque(true);
-#ifdef CONFIG_MENU
        if (cls.state != ca_dedicated)
+       {
+               // put up the loading image so the user doesn't stare at a black screen...
+               SCR_BeginLoadingPlaque(true);
+#ifdef CONFIG_MENU
                MR_Init();
 #endif
+       }
+
        // check for special benchmark mode
 // COMMANDLINEOPTION: Client: -benchmark <demoname> runs a timedemo and quits, results of any timedemo can be found in gamedir/benchmark.log (for example id1/benchmark.log)
        i = Sys_CheckParm("-benchmark");