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.
|
* @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()) {
|
||||||
|
|
Loading…
Reference in New Issue