Merge pull request #78 from uecasm/judge-twice-fix
Don't judge twice when player leaves.
This commit is contained in:
commit
bcaeae6f18
|
@ -1009,6 +1009,9 @@ public class Game {
|
|||
* @return True if judging should begin.
|
||||
*/
|
||||
private boolean startJudging() {
|
||||
if (state != GameState.PLAYING) {
|
||||
return false;
|
||||
}
|
||||
if (playedCards.size() == roundPlayers.size()) {
|
||||
boolean startJudging = true;
|
||||
for (final List<WhiteCard> cards : playedCards.cards()) {
|
||||
|
|
Loading…
Reference in New Issue