From 63783d9fe25edbcfdd534a113ac11aa8447610f1 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 29 Jun 2013 17:52:19 +0200 Subject: [PATCH] * Tornament construction time - Fixed that the selected value was not used. --- .../src/main/java/mage/client/dialog/NewTournamentDialog.java | 2 +- .../src/mage/tournament/BoosterDraftEliminationTournament.java | 1 - .../src/mage/tournament/SealedEliminationTournament.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java index 3b8226bd44..16f567f10c 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java @@ -357,7 +357,7 @@ public class NewTournamentDialog extends MageDialog { if (tournamentType.isLimited()) { if (tOptions.getLimitedOptions() == null) { tOptions.setLimitedOptions(new LimitedOptions()); - tOptions.getLimitedOptions().setConstructionTime((Integer)this.spnConstructTime.getValue()); + tOptions.getLimitedOptions().setConstructionTime((Integer)this.spnConstructTime.getValue() * 60); } for (JComboBox pack: packs) { tOptions.getLimitedOptions().getSetCodes().add(((ExpansionSet) pack.getSelectedItem()).getCode()); diff --git a/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/BoosterDraftEliminationTournament.java b/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/BoosterDraftEliminationTournament.java index 92f8ee92e3..d541f4537d 100644 --- a/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/BoosterDraftEliminationTournament.java +++ b/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/BoosterDraftEliminationTournament.java @@ -50,7 +50,6 @@ public class BoosterDraftEliminationTournament extends TournamentSingleEliminati public BoosterDraftEliminationTournament(TournamentOptions options) { super(options); - this.getOptions().getLimitedOptions().setConstructionTime(600); currentStep = TournamentStep.START; } diff --git a/Mage.Server.Plugins/Mage.Tournament.Sealed/src/mage/tournament/SealedEliminationTournament.java b/Mage.Server.Plugins/Mage.Tournament.Sealed/src/mage/tournament/SealedEliminationTournament.java index 702ab4630f..7f8689f954 100644 --- a/Mage.Server.Plugins/Mage.Tournament.Sealed/src/mage/tournament/SealedEliminationTournament.java +++ b/Mage.Server.Plugins/Mage.Tournament.Sealed/src/mage/tournament/SealedEliminationTournament.java @@ -45,7 +45,6 @@ public class SealedEliminationTournament extends TournamentSingleElimination { public SealedEliminationTournament(TournamentOptions options) { super(options); - this.getOptions().getLimitedOptions().setConstructionTime(1200); currentStep = TournamentStep.START; }