]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
fix bug with ClientDisconnect not being called if a client drops between "spawn"...
[xonotic/darkplaces.git] / host_cmd.c
index d68b2518a44e87bc97f257789d32af3d2f1268a3..f28ac1763e31543a433d6a4e4c18b72ae3235565 100644 (file)
@@ -1279,6 +1279,7 @@ void Host_Spawn_f (void)
                        (&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(host_client->edict);
                PR_ExecuteProgram (pr_global_struct->ClientConnect, "QC function ClientConnect is missing");