框架跟进

推进中途加入房间的观战相关
This commit is contained in:
MrZ_26
2022-11-03 12:23:29 +08:00
parent e688458cfd
commit 9e882e6188
7 changed files with 41 additions and 15 deletions

View File

@@ -247,8 +247,9 @@ function scene.update(dt)
end
end
else
NETPLY.update(dt)
if TASK.getLock('netPlaying') and not playing then
if not TASK.getLock('netPlaying') then
NETPLY.update(dt)
else
playing=true
TASK.lock('netPlaying')
lastUpstreamTime=0