]> git.cworth.org Git - empires-server/commit
Include inactive players (if they have any points) when sending to clients
authorCarl Worth <cworth@cworth.org>
Tue, 30 Jun 2020 00:02:39 +0000 (17:02 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 6 Jul 2020 01:43:58 +0000 (18:43 -0700)
commit92eba6c6fa387e7ffe798f12d23bdd203dde4a29
tree06ac283af70f88085f361a33cfa8cbdc0c3dcf66
parent4c3572dcbf3e133c9f3d0c7d295f412ff5b88763
Include inactive players (if they have any points) when sending to clients

This allows clients to display scores for all players in a game, (even if
some players happen to not be active anymore).

To make the state consistent, we also send the active bit in the JSON
info for any player.

This commit fixes up the Tic-tac-toe tests in the test suite to now
expect this active property in the info sent from the server.
game.js
test