Skip to content

Commit

Permalink
Integrate finish() and promptForSide().
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Sep 9, 2023
1 parent e4ab000 commit 4a7add4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,12 @@ protected String promptForSide(String newSide) {
}
else {
fromWizard = true;
if (newSide == null) {
newSide = "";
}
}

while (newSide != null && !newSide.isEmpty()) { // Loops until a valid side is found or op is canceled (repeats side check to minimuse race condition window)
while (newSide != null) { // Loops until a valid side is found or op is canceled (repeats side check to minimuse race condition window)

for (final PlayerInfo p : players) {
alreadyTaken.add(p.side);
Expand Down

0 comments on commit 4a7add4

Please sign in to comment.