AntiNoob: last fix i promise

This commit is contained in:
dogan 2020-06-19 17:07:12 +02:00
parent 5c7c783c59
commit 5bfce17da9

View File

@ -251,7 +251,7 @@ public void CheckHumanZombieCount()
return; return;
int iHumanCount; int iHumanCount;
int iZombieCount; int iZombieCount = 1;
for(int i = 1; i <= MaxClients; i++) for(int i = 1; i <= MaxClients; i++)
{ {
@ -265,8 +265,8 @@ public void CheckHumanZombieCount()
iZombieCount++; iZombieCount++;
} }
if(iHumanCount == 0 || iZombieCount == 0) if(iHumanCount == 0)
return; iHumanCount = 1;
if(float(iZombieCount) / float(iHumanCount) >= g_fMidRoundRatio) if(float(iZombieCount) / float(iHumanCount) >= g_fMidRoundRatio)
{ {