联网推进(微调房间内交互,观战模式不再尝试发送录像流)

This commit is contained in:
MrZ626
2021-05-18 17:39:00 +08:00
parent cd49507a2b
commit d07075ca9c
4 changed files with 9 additions and 9 deletions

View File

@@ -476,7 +476,7 @@ function NET.updateWS_play()
NET.wsconn_stream()
elseif res.action==9 then--Game finished
NET.roomState.start=false
NET.watch=false
NET.spectate=false
if SCN.socketRead then SCN.socketRead('finish',d)end
NET.wsclose_stream()
end
@@ -522,7 +522,7 @@ function NET.updateWS_stream()
end
end
netPLY.setConnect(d.uid)
NET.watch=d.watch==true
NET.spectate=d.watch==true
else
if d.watch then
netPLY.setWatch(d.uid)