mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Some changes to game start logic (better handling for disconnected users). Changes to server logging.
This commit is contained in:
parent
5d30cf536b
commit
30869beca0
13 changed files with 132 additions and 107 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue