From 78ae28ede1f674515d2cc82aa4a323922e6d7e87 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Sat, 11 Nov 2006 07:16:33 +0000 Subject: * (bug 2879) zombie clients getting stuck in spawns (Martin Doucha) --- src/game/g_client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/g_client.c') diff --git a/src/game/g_client.c b/src/game/g_client.c index 7350b55c..7141f222 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1682,6 +1682,11 @@ void ClientDisconnect( int clientNum ) G_LogPrintf( "ClientDisconnect: %i [%s] (%s) \"%s\"\n", clientNum, ent->client->pers.ip, ent->client->pers.guid, ent->client->pers.netname ); + if( ent->client->pers.teamSelection == PTE_ALIENS ) + G_RemoveFromSpawnQueue( &level.alienSpawnQueue, ent->client->ps.clientNum ); + else if( ent->client->pers.teamSelection == PTE_HUMANS ) + G_RemoveFromSpawnQueue( &level.humanSpawnQueue, ent->client->ps.clientNum ); + trap_UnlinkEntity( ent ); ent->s.modelindex = 0; ent->inuse = qfalse; -- cgit