Skip to content

Commit

Permalink
Merge pull request #342 from ciscon/election-fix
Browse files Browse the repository at this point in the history
BUG: do not override the required number of votes (2) for an election…
  • Loading branch information
tcsabina committed Apr 29, 2024
2 parents c00f64f + aececb0 commit 8cf6cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vote.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ int get_votes_req(int fofs, qbool diff)
vt_req = max(2, vt_req); // at least 2 votes in this case
}

if ((CountBots() > 0) && ((CountPlayers() - CountBots()) == 1) && (fofs != OV_PRIVATE))
if ((CountBots() > 0) && ((CountPlayers() - CountBots()) == 1) && (fofs != OV_PRIVATE) && (fofs != OV_ELECT))
{
vt_req = 1;
}
Expand Down

0 comments on commit 8cf6cef

Please sign in to comment.