Updated 'LobbyState' class.
Updated the 'LobbyState' class by sending a broadcast update the new ready state of the client.
This commit is contained in:
@@ -122,6 +122,7 @@ public void received(LobbyReadyMessage msg, int from) {
|
||||
}
|
||||
}
|
||||
this.logic.getGame().getPlayerById(from).setReady(true);
|
||||
this.logic.getServerSender().broadcast(new UpdateReadyMessage(from, true));
|
||||
if (this.logic.getGame().areAllReady()) {
|
||||
this.initializeGame();
|
||||
this.logic.getServerSender().broadcast(new ServerStartGameMessage());
|
||||
|
||||
Reference in New Issue
Block a user