]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Implement autopause for empty dedicated servers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 5b7509e484d5fecec7e6f49a852de6ea218e39e9..f78d772c5d0f363a377e86c7650b7f071faaf0eb 100644 (file)
@@ -1188,7 +1188,11 @@ void ClientConnect(entity this)
        MUTATOR_CALLHOOK(ClientConnect, this);
 
        if (player_count == 1)
+       {
+               if (autocvar_sv_autopause && server_is_dedicated)
+                       setpause(0);
                localcmd("\nsv_hook_firstjoin\n");
+       }
 }
 /*
 =============