mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Merging game lobby with game state broadcast
This commit is contained in:
@@ -157,7 +157,7 @@ public class LobbyController implements Initializable, Observer{
|
|||||||
if (competitorIndex >= 8) {
|
if (competitorIndex >= 8) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!yachtId.equals(ClientState.getClientSourceId())) {
|
if (!yachtId.equals(Integer.parseInt(ClientState.getClientSourceId()))) {
|
||||||
competitors.get(competitorIndex).add(String.valueOf(yachtId));
|
competitors.get(competitorIndex).add(String.valueOf(yachtId));
|
||||||
competitorIndex++;
|
competitorIndex++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ public class ServerToClientThread implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Thread getThread() {
|
public Thread getThread() {
|
||||||
|
|||||||
Reference in New Issue
Block a user