]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed bug that caused ClientDisconnect to not be called on bots in their first level...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 9 Mar 2006 16:19:23 +0000 (16:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 9 Mar 2006 16:19:23 +0000 (16:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6083 d7cf8633-e32d-0410-b094-e92efae38249

svvm_cmds.c

index c178bab907c7bce6997d476526a2def700b2e183..860d7a027742355823f97d2924bdde17791b6f61 100644 (file)
@@ -2440,6 +2440,9 @@ void PF_spawnclient (void)
                {
                        prog->xfunction->builtinsprofile += 100;
                        SV_ConnectClient (i, NULL);
+                       // this has to be set or else ClientDisconnect won't be called
+                       // we assume the qc will call ClientConnect...
+                       svs.clients[i].clientconnectcalled = true;
                        ed = PRVM_EDICT_NUM(i + 1);
                        break;
                }