]> git.cworth.org Git - lmno.games/commitdiff
empathy: Don't force active:true when adding state for a new player
authorCarl Worth <cworth@cworth.org>
Sat, 4 Jul 2020 14:53:32 +0000 (07:53 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 4 Jul 2020 14:53:32 +0000 (07:53 -0700)
This fixes the bug where reloading the interface would cause inactive,
grayed-out player names to appear solid instead of grayed out.

What I had been thinking when writing this code is that this function
would be called only when a new player joins the game, (and by
definition, a newly joined player must be active). But this function
can also be called when a player reloads their interface, and at that
point player-join events are received for all players whether active
or not.

Meanwhile, the server is now explicitly providing the active bit for
players, so we get the right information without doing anything.


No differences found