Make sm_mapvote_runoffpercent cvar work as advertised (bug 5890, r=asherkin).
This commit is contained in:
parent
124ede82b3
commit
7ad43a5b11
@ -790,7 +790,7 @@ public Handler_MapVoteFinished(Handle:menu,
|
||||
new Float:winningvotes = float(item_info[0][VOTEINFO_ITEM_VOTES]);
|
||||
new Float:required = num_votes * (GetConVarFloat(g_Cvar_RunOffPercent) / 100.0);
|
||||
|
||||
if (winningvotes <= required)
|
||||
if (winningvotes < required)
|
||||
{
|
||||
/* Insufficient Winning margin - Lets do a runoff */
|
||||
g_VoteMenu = CreateMenu(Handler_MapVoteMenu, MenuAction:MENU_ACTIONS_ALL);
|
||||
|
Loading…
Reference in New Issue
Block a user