mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Fixed that watching tournament could not be started.
This commit is contained in:
parent
949d2cb24c
commit
af4fa9d542
1 changed files with 2 additions and 2 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Reference in a new issue