ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.23k stars 397 forks source link

Don't reset game when kicking idle players #77

Closed uecasm closed 10 years ago

uecasm commented 10 years ago

Fixes #32. Finally. Hallelujah.

The problem was that when it actually removed players, the game had already been switched to JUDGING or ROUND_OVER state by removePlayer, which hit the wrong path in this check.

The new version is probably still a little more paranoid than it really needs to be, but it works.