Skip to content

Commit aececb0

Browse files
committed
BUG: do not override the required number of votes (2) for an election when bots are enabled. fixes issue QW-Group#341
1 parent d33f0e7 commit aececb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vote.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ int get_votes_req(int fofs, qbool diff)
327327
vt_req = max(2, vt_req); // at least 2 votes in this case
328328
}
329329

330-
if ((CountBots() > 0) && ((CountPlayers() - CountBots()) == 1) && (fofs != OV_PRIVATE))
330+
if ((CountBots() > 0) && ((CountPlayers() - CountBots()) == 1) && (fofs != OV_PRIVATE) && (fofs != OV_ELECT))
331331
{
332332
vt_req = 1;
333333
}

0 commit comments

Comments
 (0)