NoAdminTools: Fix attempt
This commit is contained in:
parent
aa99143158
commit
f33a9308d0
@ -235,9 +235,10 @@ public void CheckRatio()
|
||||
|
||||
iPlayersNeeded = RoundToFloor(float(iPlayers) * g_fSelfExtendsRatio);
|
||||
|
||||
if(iSelfExtendsPlayers >= iPlayersNeeded)
|
||||
if(iSelfExtendsPlayers >= iPlayersNeeded && iPlayersNeeded != 0)
|
||||
{
|
||||
PrintToChatAll("[SM] Enough Players voted to self-extend the map. Adding %d minutes to the timelimit.", g_iSelfExtendsTime);
|
||||
LogMessage("Enough Players voted to self-extend the map. Adding %d minutes to the timelimit.", g_iSelfExtendsTime);
|
||||
g_iSelfExtends++;
|
||||
g_cvarTimeLimit.IntValue += g_iSelfExtendsTime;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user