移除一段goto

This commit is contained in:
MrZ626
2021-03-22 21:19:48 +08:00
parent 55bba313fe
commit 13f1ae7c6f

View File

@@ -378,7 +378,7 @@ function update.remote_alive(P,dt)
frmStep<240 and 2 or
frmStep<480 and rnd(2,3) or
3
::readNext::
repeat
local pos=P.streamProgress
local eventTime=P.stream[pos]
if eventTime then
@@ -420,13 +420,13 @@ function update.remote_alive(P,dt)
end
end
P.streamProgress=pos+2
goto readNext
end
else
update.alive(P,dt)
end
if frmStep>1 then
frmStep=frmStep-1
goto readNext
end
else
frmStep=frmStep-1
end
until frmStep<=0
end
return update