From bde909e21c20974a8c8c2d53ea51ec41972ea7ae Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 13 Aug 2008 09:45:58 +0000 Subject: [PATCH] partially fix ClientConnect handling (fixes the slot between SpawnServer and ClientConnect (content download, signon) where a client that drops could have ClientDisconnect getting called without ClientConnect ever happening in that progs) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8448 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sv_main.c b/sv_main.c index 20c6c4d2..ff02ac21 100644 --- a/sv_main.c +++ b/sv_main.c @@ -2757,6 +2757,7 @@ void SV_SpawnServer (const char *server) // send serverinfo to all connected clients, and set up botclients coming back from a level change for (i = 0, host_client = svs.clients;i < svs.maxclients;i++, host_client++) { + host_client->clientconnectcalled = false; // do NOT call ClientDisconnect if he drops before ClientConnect! if (!host_client->active) continue; if (host_client->netconnection) -- 2.39.2