~mzbot-hackers/mzbot/pushsomething

Viewing all changes in revision 971.

  • Committer: Marien Zwart
  • Date: 2010-07-16 14:20:39 UTC
  • Revision ID: marienz@cyclops-20100716142039-8hzn7p3djf4d22yb
Hopefully fix bugs where a lynch is not triggered after player removal.

We were only checking if someone has enough votes to be lynched after
each vote change, but we should also do that after player removal and
nonvoters changes. That is: not just more votes for a target can cause
a lynch, lowering the number of votes needed can also do it.

This tries to fix that by checking for lynches whenever we check for
victory, while hopefully not adding bugs caused by lynches themselves
triggering a victory check (recursion...).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: