]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
partially fix ClientConnect handling
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Aug 2008 09:45:58 +0000 (09:45 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Aug 2008 09:45:58 +0000 (09:45 +0000)
(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

index 20c6c4d29afd33bf717afbd17b18bbb58dadc686..ff02ac219b1b25106ae600fbea971d06e36dcbf8 100644 (file)
--- 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)