修正进入房间成功的时候错误打断了一个等待,应当是创建成功时

This commit is contained in:
MrZ_26
2022-10-24 22:04:49 +08:00
parent 7b1df65e64
commit 86910f2956

View File

@@ -32,7 +32,6 @@ local NET={
inputBox=WIDGET.newInputBox{name='input',x=340,y=660,w=600,h=50,limit=256},
}
function NET.connectLost()
while SCN.stack[#SCN.stack-1]~='main' and #SCN.stack>0 do SCN.pop() end
SCN.back()
@@ -591,6 +590,7 @@ end
function NET.wsCallBack.room_create(body)
MES.new('check',text.createRoomSuccessed)
NET.wsCallBack.room_enter(body)
WAIT.interrupt()
end
function NET.wsCallBack.room_getData(body)
NET.roomState.data=body.data
@@ -639,8 +639,6 @@ function NET.wsCallBack.room_enter(body)
NET.freshRoomAllReady()
end
end
WAIT.interrupt()
end
function NET.wsCallBack.room_kick(body)
MES.new('info',text.playerKicked:repD(body.data.executorId,body.data.playerId))