X-Git-Url: https://git.cworth.org/git?p=empires-server;a=blobdiff_plain;f=empathy.js;h=56ac53f9c32f95d5b6cbefdebb21d69ed68918e0;hp=bc846c19600a13b9c03e8cd65b9673f517c7109e;hb=ca261367bfa9dbb281a09547548c6695df91bb86;hpb=13f2a95476240fd9049008d1a5a5f8711b39c3fd diff --git a/empathy.js b/empathy.js index bc846c1..56ac53f 100644 --- a/empathy.js +++ b/empathy.js @@ -577,7 +577,7 @@ router.post('/answer/:prompt_id([0-9]+)', (request, response) => { /* If every registered player has answered, then there's no need to * wait for anything else. */ - if (game.state.players_answered.length >= game.players.length) + if (game.state.players_answered.length >= game.active_players) game.perform_judging(); });