mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Match - Fixed a bug during creation of game info that lets game worker die (second try).
This commit is contained in:
parent
581df41ae7
commit
995655aa61
1 changed files with 13 additions and 8 deletions
|
@ -286,14 +286,19 @@ public abstract class MatchImpl implements Match {
|
||||||
if (currentPlayer == null) {
|
if (currentPlayer == null) {
|
||||||
currentPlayer = playerList.getCurrent(game);
|
currentPlayer = playerList.getCurrent(game);
|
||||||
}
|
}
|
||||||
do {
|
if (currentPlayer != null) {
|
||||||
if (counter > 0) {
|
do {
|
||||||
playersInfo.append(" - ");
|
if (counter > 0) {
|
||||||
}
|
playersInfo.append(" - ");
|
||||||
playersInfo.append(currentPlayer.getName());
|
}
|
||||||
counter++;
|
playersInfo.append(currentPlayer.getName());
|
||||||
currentPlayer = game.getPlayer(playerList.getNext());
|
counter++;
|
||||||
} while(!currentPlayer.getId().equals(game.getStartingPlayerId()));
|
currentPlayer = game.getPlayer(playerList.getNext());
|
||||||
|
|
||||||
|
} while(!currentPlayer.getId().equals(game.getStartingPlayerId()));
|
||||||
|
} else {
|
||||||
|
playersInfo.append("[got no players]");
|
||||||
|
}
|
||||||
|
|
||||||
String state;
|
String state;
|
||||||
String result;
|
String result;
|
||||||
|
|
Loading…
Reference in a new issue