reintroducing revotes again for normal mapvotes
This commit is contained in:
parent
a4e2d541a9
commit
a02fea8cc8
@ -1816,7 +1816,8 @@ public void Handler_MapVoteFinished(Handle menu,
|
|||||||
int required_percent = GetConVarInt(g_Cvar_RunOffPercent);
|
int required_percent = GetConVarInt(g_Cvar_RunOffPercent);
|
||||||
|
|
||||||
int most_voted_map_percentage = (weighted_votes[0] / total_votes) * 100;
|
int most_voted_map_percentage = (weighted_votes[0] / total_votes) * 100;
|
||||||
if(GetConVarBool(g_Cvar_RunOff) && g_RunoffCount < GetConVarInt(g_Cvar_MaxRunOffs) && num_items > 1 && g_ChangeTime != MapChange_MapEnd &&
|
if(GetConVarBool(g_Cvar_RunOff) && g_RunoffCount < GetConVarInt(g_Cvar_MaxRunOffs) && num_items > 1 &&
|
||||||
|
!(g_ChangeTime == MapChange_MapEnd && g_iNextmapState != 3) && //only block revotes when its extend vs not extend vote. but still allow the real vote to revote.
|
||||||
(weighted_votes[0] == weighted_votes[1] || most_voted_map_percentage < required_percent))
|
(weighted_votes[0] == weighted_votes[1] || most_voted_map_percentage < required_percent))
|
||||||
{
|
{
|
||||||
g_RunoffCount++;
|
g_RunoffCount++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user