From: cloudwalk Date: Sun, 11 Apr 2021 16:46:11 +0000 (+0000) Subject: sv_main: Let the other players know if a connected player has timed out X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=2ee33d88c90a282bc5e0404120ad29c30a2621f1 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 --- 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); } }