From: Carl Worth <cworth@cworth.org>
Date: Tue, 30 Jun 2020 00:05:17 +0000 (-0700)
Subject: Only consider active players when counting players needed for prompt voting
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=32a2a8dc67592143959e0c9ef77f7065466f4be0;p=lmno.games

Only consider active players when counting players needed for prompt voting

Now that the server is sending us inactive players, we don't want to
consider them when computing how many votes we need to go forward with
a category.
---

diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index 3e6399d..7ac92e0 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -1357,7 +1357,7 @@ class Game extends React.PureComponent {
       />,
       <LetsPlay
         key="lets-play"
-        num_players={1+state.other_players.length}
+        num_players={1+state.other_players.filter(p => p.active).length}
         prompts={state.prompts}
       />,
       <PromptOptions