Make sm_mapvote_runoffpercent cvar work as advertised (bug 5890, r=asherkin).

This commit is contained in:
Nicholas Hastings 2013-08-30 14:14:59 -04:00
parent 124ede82b3
commit 7ad43a5b11

View File

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