NoAdminTools: Fix attempt
This commit is contained in:
parent
95b6051f20
commit
5126a2db6e
@ -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