Lines Matching refs:drop
183 void SV_DropClient (client_t *drop) in SV_DropClient() argument
186 MSG_WriteByte (&drop->netchan.message, svc_disconnect); in SV_DropClient()
188 if (drop->state == cs_spawned) in SV_DropClient()
189 if (!drop->spectator) in SV_DropClient()
193 pr_global_struct->self = EDICT_TO_PROG(drop->edict); in SV_DropClient()
200 pr_global_struct->self = EDICT_TO_PROG(drop->edict); in SV_DropClient()
204 if (drop->spectator) in SV_DropClient()
205 Con_Printf ("Spectator %s removed\n",drop->name); in SV_DropClient()
207 Con_Printf ("Client %s removed\n",drop->name); in SV_DropClient()
209 if (drop->download) in SV_DropClient()
211 fclose (drop->download); in SV_DropClient()
212 drop->download = NULL; in SV_DropClient()
214 if (drop->upload) in SV_DropClient()
216 fclose (drop->upload); in SV_DropClient()
217 drop->upload = NULL; in SV_DropClient()
219 *drop->uploadfn = 0; in SV_DropClient()
221 drop->state = cs_zombie; // become free in a few seconds in SV_DropClient()
222 drop->connection_started = realtime; // for zombie timeout in SV_DropClient()
224 drop->old_frags = 0; in SV_DropClient()
225 drop->edict->v.frags = 0; in SV_DropClient()
226 drop->name[0] = 0; in SV_DropClient()
227 memset (drop->userinfo, 0, sizeof(drop->userinfo)); in SV_DropClient()
230 SV_FullClientUpdate (drop, &sv.reliable_datagram); in SV_DropClient()