Skip to content

Commit

Permalink
Keep vote running until everyone presses f3 or time runs out
Browse files Browse the repository at this point in the history
Gives enough time for mods to react and for players to save
  • Loading branch information
def- committed Jan 10, 2018
1 parent 94e4350 commit ea85e06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/server/gamecontext.cpp
Expand Up @@ -766,9 +766,7 @@ void CGameContext::OnTick()
(m_VoteKick || m_VoteSpec))
Total = g_Config.m_SvVoteMaxTotal;

if((Yes > Total / (100.0 / g_Config.m_SvVoteYesPercentage)) && !Veto)
m_VoteEnforce = VOTE_ENFORCE_YES;
else if(No >= Total - Total / (100.0 / g_Config.m_SvVoteYesPercentage))
if(No >= Total - Total / (100.0 / g_Config.m_SvVoteYesPercentage))
m_VoteEnforce = VOTE_ENFORCE_NO;

if(VetoStop)
Expand Down

0 comments on commit ea85e06

Please sign in to comment.