summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2006-11-11 07:16:33 +0000
committerTony J. White <tjw@tjw.org>2006-11-11 07:16:33 +0000
commit78ae28ede1f674515d2cc82aa4a323922e6d7e87 (patch)
treedd32d54c8da0b0cf6091b26c20a2c6c642e08530 /src/game
parent17fce71e564ed140385f6acd1c6213702be31226 (diff)
* (bug 2879) zombie clients getting stuck in spawns (Martin Doucha)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_client.c5
1 files changed, 5 insertions, 0 deletions
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;