Tournament now drops players correctly after the game that eliminates them.

This commit is contained in:
marcins78@gmail.com
2013-01-19 23:28:09 +00:00
parent 2738a14d4d
commit 6a6de63921

View File

@@ -157,8 +157,10 @@ public class DefaultTournament implements Tournament {
_currentlyPlayingPlayers.remove(loser);
_finishedTournamentMatches.add(
new TournamentMatch(winner, loser, winner, _tournamentRound));
if (_pairingMechanism.shouldDropLoser())
if (_pairingMechanism.shouldDropLoser()) {
_tournamentService.dropPlayer(_tournamentId, loser);
_droppedPlayers.add(loser);
}
_currentStandings = null;
}
} finally {