]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
sv_main: Let the other players know if a connected player has timed out
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Apr 2021 16:46:11 +0000 (16:46 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Apr 2021 16:46:11 +0000 (16:46 +0000)
Authored by bones_was_here
https://gitlab.com/xonotic/darkplaces/-/merge_requests/114

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13109 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index b5186eca8072388e3952170a76e66af4a88fa1b8..ddb509f3d59b49fbd795108392f16b300c135248 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -2465,7 +2465,11 @@ static void SV_CheckTimeouts(void)
        {
                if (host_client->netconnection && host.realtime > host_client->netconnection->timeout)
                {
-                       Con_Printf("Client \"%s\" connection timed out\n", host_client->name);
+                       if (host_client->begun)
+                               SV_BroadcastPrintf("Client \"%s\" connection timed out\n", host_client->name);
+                       else
+                               Con_Printf("Client \"%s\" connection timed out\n", host_client->name);
+
                        SV_DropClient(false);
                }
        }