remove a goto

This commit is contained in:
Imple Lee
2021-03-19 18:39:24 +08:00
committed by MrZ626
parent c1765423a6
commit 2753fc3505

View File

@@ -911,24 +911,22 @@ function pumpRecording(str,L)
while p<=len do while p<=len do
--Read delta time --Read delta time
code=0 code=0
::nextByte1::
local b=byte(str,p) local b=byte(str,p)
if b>=128 then while b>=128 do
code=code*128+b-128 code=code*128+b-128
p=p+1 p=p+1
goto nextByte1 b=byte(str,p)
end end
curFrm=curFrm+code*128+b curFrm=curFrm+code*128+b
L[#L+1]=curFrm L[#L+1]=curFrm
p=p+1 p=p+1
local event=0 local event=0
::nextByte2::
b=byte(str,p) b=byte(str,p)
if b>=128 then while b>=128 do
event=event*128+b-128 event=event*128+b-128
p=p+1 p=p+1
goto nextByte2 b=byte(str,p)
end end
L[#L+1]=event*128+b L[#L+1]=event*128+b
p=p+1 p=p+1