diff options
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 5 |
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; |