only network host can adjust number of players

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
Jamin W. Collins
2018-08-04 15:12:53 -06:00
parent 11ca1231a4
commit 57d5013750

View File

@@ -193,6 +193,8 @@ public abstract class LobbyScreen extends LaunchScreen implements ILobbyView {
btnStart.setEnabled(hasControl);
lblVariants.setEnabled(hasControl);
cbVariants.setEnabled(hasControl);
lblPlayers.setEnabled(hasControl);
cbPlayerCount.setEnabled(hasControl);
while (lobby.getNumberOfSlots() < getNumPlayers()){
lobby.addSlot();
}