修改房间准备状态变量修改条件,减少出现问题状态的可能性

This commit is contained in:
MrZ626
2021-06-24 14:26:14 +08:00
parent 096f162ea6
commit 36a30a6318
3 changed files with 15 additions and 18 deletions

View File

@@ -124,7 +124,7 @@ function netPLY.setJoinMode(uid,ready)
if p.uid==uid then
if p.mode~=ready then
p.mode=ready
if ready==0 then NET.allReady=false end
if ready==0 then NET.roomReadyState=false end
SFX.play('spin_0',.6)
if p.uid==USER.uid then
NET.unlock('ready')