]> git.cworth.org Git - lmno-server/commit
game: Fix reactivation of an existing player to be fully active
authorCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 16:45:22 +0000 (09:45 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 16:45:22 +0000 (09:45 -0700)
commit674a3db4a23ee236f08bf3997a1c4fb939e78724
tree557b9358eb44a202497b6d67b69268b9edff9ef9
parent66b333239bd232c60cc1093aefc55c585af293cc
game: Fix reactivation of an existing player to be fully active

To do this, we have to set the player's active bit to true, then we
increment the server's count of active players, and finally we
broadcast to all active players that this player has entered the game
again.

This commit fixes the bug described in the previous commit, (so that
the entire test suite passes once again).
game.js