don't consider sv_spectator_slots for team change when already in a team(red, blue). Closes #141

This commit is contained in:
oy 2010-06-27 13:24:47 +02:00
parent 29d29df4f0
commit 7325bdac42

View file

@ -541,7 +541,7 @@ int IGameController::GetAutoTeam(int Notthisid)
bool IGameController::CanJoinTeam(int Team, int Notthisid)
{
if(Team == -1)
if(Team == -1 || (GameServer()->m_apPlayers[Notthisid] && GameServer()->m_apPlayers[Notthisid]->GetTeam() != -1))
return true;
int aNumplayers[2] = {0,0};