Show player list even if 0 human players are in game

This commit is contained in:
Andrew Guibert 2018-05-06 12:44:57 -05:00
parent d44a4fb082
commit 5843b3e121

View File

@ -11,7 +11,6 @@ public class OutboundMessage {
public final Player[] playerlist;
public PlayerList(Set<Player> players) {
if (players.size() > 0) {
// Send players in proper order, padding out empty slots with "Bot Player"
playerlist = new Player[Player.MAX_PLAYERS];
for (Player p : players)
@ -19,10 +18,6 @@ public class OutboundMessage {
for (int i = 0; i < Player.MAX_PLAYERS; i++)
if (playerlist[i] == null)
playerlist[i] = new Player("", "Bot Player", (short) i, 0, 0);
} else {
// If no players are in the game yet, do not show all bot players
playerlist = new Player[0];
}
}
}