* Some changes to game start logic (better handling for disconnected users). Changes to server logging.

This commit is contained in:
LevelX2 2014-12-08 01:30:18 +01:00
parent 5d30cf536b
commit 30869beca0
13 changed files with 132 additions and 107 deletions

View file

@ -668,7 +668,7 @@ public abstract class GameImpl implements Game, Serializable {
}
if (gameOver(null) && !isSimulation()) {
winnerId = findWinnersAndLosers();
StringBuilder sb = new StringBuilder("GAME ended gameId: ").append(this.getId()).append(" ");
StringBuilder sb = new StringBuilder("GAME END gameId: ").append(this.getId()).append(" ");
int count = 0;
for (Player player: this.getState().getPlayers().values()) {
if (count > 0) {
@ -789,6 +789,10 @@ public abstract class GameImpl implements Game, Serializable {
saveState(false);
if (gameOver(null)) {
return;
}
//20091005 - 103.1
if (!gameOptions.skipInitShuffling) { //don't shuffle in test mode for card injection on top of player's libraries
for (Player player: state.getPlayers().values()) {

View file

@ -185,7 +185,6 @@ public abstract class PlayerImpl implements Player, Serializable {
protected int priorityTimeLeft = Integer.MAX_VALUE;
//
// conceded or connection lost game
protected boolean left;
// set if the player quits the complete match
@ -2870,5 +2869,5 @@ public abstract class PlayerImpl implements Player, Serializable {
return usersAllowedToSeeHandCards;
}
}