移除一段goto
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user