paranthesis
This commit is contained in:
parent
582703c271
commit
8b03595c85
@ -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'
|
// Implement revote logic - Only run this` block if revotes are enabled and this isn't the last revote'
|
||||||
//LogMessage("Mapchooser_extended_avg Handler_MapVoteFinished.");
|
//LogMessage("Mapchooser_extended_avg Handler_MapVoteFinished.");
|
||||||
int required_percent = GetConVarInt(g_Cvar_RunOffPercent);
|
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 &&
|
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))
|
(weighted_votes[0] == weighted_votes[1] || weighted_votes[0] < required_votes))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user