Leagues do not show player waiting at the table.

This commit is contained in:
marcins78@gmail.com
2012-12-16 19:37:03 +00:00
parent 1597e3c879
commit 60d936ca17

View File

@@ -270,7 +270,12 @@ public class HallServer extends AbstractServer {
for (Map.Entry<String, AwaitingTable> tableInformation : _awaitingTables.entrySet()) {
final AwaitingTable table = tableInformation.getValue();
visitor.visitTable(tableInformation.getKey(), null, false, "Waiting", table.getLotroFormat().getName(), getTournamentName(table), table.getPlayerNames(), null);
Set<String> players;
if (table.getLeague() != null)
players = Collections.<String>emptySet();
else
players = table.getPlayerNames();
visitor.visitTable(tableInformation.getKey(), null, false, "Waiting", table.getLotroFormat().getName(), getTournamentName(table), players, null);
}
// Then non-finished