mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-30 11:57:35 +08:00
debug not joining message
This commit is contained in:
parent
1f471cc50d
commit
4f6db03765
1 changed files with 9 additions and 0 deletions
|
|
@ -817,7 +817,10 @@ MP.socket.on("mp_room_joined", (data) => {
|
|||
}
|
||||
if (MP.room.users[MP.socket.id].isLeader) {
|
||||
MP.room.isLeader = true;
|
||||
} else {
|
||||
MP.room.isLeader = false;
|
||||
}
|
||||
mp_resetReadyButtons();
|
||||
mp_refreshUserList();
|
||||
if (MP.state === 10) {
|
||||
//user is already in the room and somebody joined
|
||||
|
|
@ -1004,6 +1007,12 @@ MP.socket.on("mp_room_test_init", (data) => {
|
|||
if (!MP.room.isReady && !MP.room.isLeader) {
|
||||
changePage("tribe");
|
||||
mp_changeActiveSubpage("lobby");
|
||||
Notifications.add(
|
||||
`Not joining race. isReady: ${MP.room.isReady}, isLeader: ${MP.room.isLeader}`,
|
||||
0,
|
||||
0,
|
||||
"DEBUG"
|
||||
);
|
||||
return;
|
||||
}
|
||||
mp_playSound("start");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue