paranthesis

This commit is contained in:
jenz 2023-09-23 10:02:07 +02:00
parent 582703c271
commit 8b03595c85

View File

@ -1617,7 +1617,7 @@ public void Handler_MapVoteFinished(Handle menu,
// Implement revote logic - Only run this` block if revotes are enabled and this isn't the last revote'
//LogMessage("Mapchooser_extended_avg Handler_MapVoteFinished.");
int required_percent = GetConVarInt(g_Cvar_RunOffPercent);
int required_votes = RoundToCeil(total_votes * float(required_percent) / 100.0);
int required_votes = RoundToCeil((total_votes * float(required_percent)) / 100.0);
if(GetConVarBool(g_Cvar_RunOff) && g_RunoffCount < GetConVarInt(g_Cvar_MaxRunOffs) && num_items > 1 &&
(weighted_votes[0] == weighted_votes[1] || weighted_votes[0] < required_votes))
{