Added optional server config parameter to limit the number of AI players when creating tournaments.

This commit is contained in:
LevelX2 2013-10-07 18:14:27 +02:00
parent f04df1b193
commit 360a62917b
6 changed files with 55 additions and 14 deletions

View file

@ -394,7 +394,7 @@ public class NewTournamentDialog extends MageDialog {
table = session.createTournamentTable(roomId, tOptions);
if (table == null) {
JOptionPane.showMessageDialog(MageFrame.getDesktop(), "Error creating table.", "Error", JOptionPane.ERROR_MESSAGE);
// message must be send by server!
return;
}
if (session.joinTournamentTable(roomId, table.getTableId(), this.txtPlayer1Name.getText(), "Human", 1)) {