FakePopulation: add the while back
This commit is contained in:
parent
746a5738ab
commit
0031497822
@ -246,9 +246,6 @@ public void CheckPopulation()
|
||||
{
|
||||
if (g_bFakePopulation[i])
|
||||
iFakes++;
|
||||
|
||||
if (g_bFakePopulation[i] && GetClientTeam(i) >= CS_TEAM_T)
|
||||
iFakesInTeam++;
|
||||
}
|
||||
|
||||
int iFakesNeeded = 0;
|
||||
@ -329,9 +326,15 @@ public void CheckPopulation()
|
||||
}
|
||||
}
|
||||
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (g_bFakePopulation[i] && GetClientTeam(i) >= CS_TEAM_T)
|
||||
iFakesInTeam++;
|
||||
}
|
||||
|
||||
if (iFakes == iFakesNeeded && iFakesInTeam != iFakesInTeamNeeded && g_iAdminFakes == -1)
|
||||
{
|
||||
if (iFakesInTeam < iFakesInTeamNeeded)
|
||||
while (iFakesInTeam < iFakesInTeamNeeded)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
@ -345,7 +348,7 @@ public void CheckPopulation()
|
||||
}
|
||||
}
|
||||
|
||||
if (iFakesInTeam > iFakesInTeamNeeded)
|
||||
while (iFakesInTeam > iFakesInTeamNeeded)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user