]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Let the other players know if a connected player has timed out
authorbones_was_here <bones_was_here@xa.org.au>
Mon, 22 Mar 2021 12:17:42 +0000 (22:17 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Mon, 22 Mar 2021 12:55:12 +0000 (22:55 +1000)
sv_main.c

index ee17fdd9c537a3b2a2d2fafeb83dfa6903a68989..22a1f8827a4f3de160cdcfd6805d750b04268ade 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -2464,7 +2464,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);
                }
        }