]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
fix bug with ClientDisconnect not being called if a client drops between "spawn"...
[xonotic/darkplaces.git] / sv_main.c
index 44ae62c48b5338dff33b5a8634aac9293016b015..8818902a6b44febb6d4e51606d1f6e20b43c174b 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -291,6 +291,7 @@ void SV_SendServerinfo (client_t *client)
                        (&pr_global_struct->parm1)[i] = host_client->spawn_parms[i];
 
                // call the spawn function
+               host_client->clientconnectcalled = true;
                pr_global_struct->time = sv.time;
                pr_global_struct->self = EDICT_TO_PROG(client->edict);
                PR_ExecuteProgram (pr_global_struct->ClientConnect, "QC function ClientConnect is missing");