Tweak how mobile user sets that they're ready

This commit is contained in:
drdev
2015-06-13 17:20:49 +00:00
parent a0c72866ac
commit 4984702803
4 changed files with 29 additions and 37 deletions

View File

@@ -154,7 +154,7 @@ public abstract class GameLobby {
}
data.slots.add(slot);
if (StringUtils.isEmpty(slot.getName())) {
if (StringUtils.isEmpty(slot.getName()) && slot.getType() != LobbySlotType.OPEN) {
slot.setName(randomName());
}
if (data.slots.size() == 1) {

View File

@@ -16,10 +16,10 @@ public final class OfflineLobby extends GameLobby {
final String humanName = localName();
final int[] avatarIndices = localAvatarIndices();
final LobbySlot slot0 = new LobbySlot(LobbySlotType.LOCAL, humanName, avatarIndices[0], 0, true, true, Collections.<AIOption>emptySet());
final LobbySlot slot0 = new LobbySlot(LobbySlotType.LOCAL, humanName, avatarIndices[0], 0, true, false, Collections.<AIOption>emptySet());
addSlot(slot0);
final LobbySlot slot1 = new LobbySlot(LobbySlotType.OPEN, "Open", avatarIndices[1], 1, false, false, Collections.<AIOption>emptySet());
final LobbySlot slot1 = new LobbySlot(LobbySlotType.OPEN, null, -1, -1, false, false, Collections.<AIOption>emptySet());
addSlot(slot1);
}