]> git.cworth.org Git - empires-server/blobdiff - empathy.js
empathy: Don't count inactive players to advance from answering phase
[empires-server] / empathy.js
index bc846c19600a13b9c03e8cd65b9673f517c7109e..56ac53f9c32f95d5b6cbefdebb21d69ed68918e0 100644 (file)
@@ -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();
 });