From af4fa9d5424ba4af46eaa5c4e3b1b1b15f27883d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 5 Oct 2014 00:39:52 +0200 Subject: [PATCH] * Fixed that watching tournament could not be started. --- .../src/main/java/mage/client/tournament/TournamentPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/tournament/TournamentPanel.java b/Mage.Client/src/main/java/mage/client/tournament/TournamentPanel.java index 4fae044fe3..4da305ff20 100644 --- a/Mage.Client/src/main/java/mage/client/tournament/TournamentPanel.java +++ b/Mage.Client/src/main/java/mage/client/tournament/TournamentPanel.java @@ -110,7 +110,7 @@ public class TournamentPanel extends javax.swing.JPanel { // logger.info("Replaying game " + gameId); // session.replayGame(gameId); // } - if (state.equals("Dueling") && actionText.equals("Watch")) { + if (state.startsWith("Dueling") && actionText.equals("Watch")) { logger.info("Watching game " + gameId); session.watchTournamentTable(tableId); } @@ -634,7 +634,7 @@ class TournamentMatchesTableModel extends AbstractTableModel { // if (games[arg0].getState().equals("Finished")) { // return "Replay"; // } - if (watchingAllowed && games[arg0].getState().equals("Dueling")) { + if (watchingAllowed && games[arg0].getState().startsWith("Dueling")) { return "Watch"; } return "";