Merge pull request #78 from uecasm/judge-twice-fix

Don't judge twice when player leaves.
This commit is contained in:
Andy Janata 2014-01-25 07:51:43 -08:00
commit bcaeae6f18
1 changed files with 3 additions and 0 deletions

View File

@ -1009,6 +1009,9 @@ public class Game {
* @return True if judging should begin. * @return True if judging should begin.
*/ */
private boolean startJudging() { private boolean startJudging() {
if (state != GameState.PLAYING) {
return false;
}
if (playedCards.size() == roundPlayers.size()) { if (playedCards.size() == roundPlayers.size()) {
boolean startJudging = true; boolean startJudging = true;
for (final List<WhiteCard> cards : playedCards.cards()) { for (final List<WhiteCard> cards : playedCards.cards()) {