NoAdminTools: Fix attempt

This commit is contained in:
Dogan 2019-08-14 13:30:01 +02:00
parent aa99143158
commit f33a9308d0

View File

@ -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;