From: Carl Worth Date: Sun, 14 Jun 2020 23:40:35 +0000 (-0700) Subject: To rule on the judging "Move On" button require a maority of answered players X-Git-Url: https://git.cworth.org/git?p=empires-server;a=commitdiff_plain;h=4d8b4a63e6e51296da5829dd91efd781125fd659 To rule on the judging "Move On" button require a maority of answered players At this point in the game we know a reliable number of players that are actually "in" this round, so use that when determining the majority required. --- diff --git a/empathy.js b/empathy.js index abaf72f..eeb33c2 100644 --- a/empathy.js +++ b/empathy.js @@ -520,7 +520,7 @@ router.post('/end-judging/:prompt_id([0-9]+)', (request, response) => { else response.sendStatus(404); - if (game.state.end_judging.size > (game.state.players_judged.length / 2)) + if (game.state.end_judging.size > (game.state.players_answered.length / 2)) game.compute_scores(); });