移除一段goto
This commit is contained in:
@@ -378,7 +378,7 @@ function update.remote_alive(P,dt)
|
|||||||
frmStep<240 and 2 or
|
frmStep<240 and 2 or
|
||||||
frmStep<480 and rnd(2,3) or
|
frmStep<480 and rnd(2,3) or
|
||||||
3
|
3
|
||||||
::readNext::
|
repeat
|
||||||
local pos=P.streamProgress
|
local pos=P.streamProgress
|
||||||
local eventTime=P.stream[pos]
|
local eventTime=P.stream[pos]
|
||||||
if eventTime then
|
if eventTime then
|
||||||
@@ -420,13 +420,13 @@ function update.remote_alive(P,dt)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
P.streamProgress=pos+2
|
P.streamProgress=pos+2
|
||||||
goto readNext
|
else
|
||||||
end
|
|
||||||
update.alive(P,dt)
|
update.alive(P,dt)
|
||||||
end
|
|
||||||
if frmStep>1 then
|
|
||||||
frmStep=frmStep-1
|
frmStep=frmStep-1
|
||||||
goto readNext
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
frmStep=frmStep-1
|
||||||
|
end
|
||||||
|
until frmStep<=0
|
||||||
end
|
end
|
||||||
return update
|
return update
|
||||||
Reference in New Issue
Block a user