From 2ee33d88c90a282bc5e0404120ad29c30a2621f1 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 11 Apr 2021 16:46:11 +0000 Subject: [PATCH] sv_main: Let the other players know if a connected player has timed out 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sv_main.c b/sv_main.c index b5186eca..ddb509f3 100644 --- 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); } } -- 2.39.2