fixes(tournament): tournament now no long blocks you and you get removed from queue when joining a tournament
This commit is contained in:
parent
6fa846f1e2
commit
06fa768c84
2 changed files with 4 additions and 2 deletions
|
|
@ -367,6 +367,7 @@ function pongClient(
|
|||
});
|
||||
|
||||
socket.on("tourEnding", (ending) => {
|
||||
inTournament = false;
|
||||
showInfo(ending);
|
||||
});
|
||||
// ---
|
||||
|
|
@ -557,12 +558,12 @@ function pongClient(
|
|||
tournamentBtn.innerText = TourBtnState.AbleToCreate;
|
||||
break;
|
||||
case "playing":
|
||||
inTournament = true;
|
||||
inTournament = weIn;
|
||||
tournamentBtn.innerText = TourBtnState.Started;
|
||||
tour_infos.innerText = `${TourInfoState.Running} ${s.players.length}👤 ${s.remainingMatches ?? "?"}▮•▮`;
|
||||
break;
|
||||
case "prestart":
|
||||
inTournament = true;
|
||||
inTournament = weIn;
|
||||
tour_infos.innerText = `${imOwner ? TourInfoState.Owner : weIn ? TourInfoState.Registered : TourInfoState.NotRegisted} ${s.players.length}👤 ?▮•▮`;
|
||||
if (imOwner) {
|
||||
tournamentBtn.innerText = TourBtnState.AbleToStart;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue