修改编辑自定义序列时删除两组相同块中间块的时候的行为
This commit is contained in:
@@ -62,9 +62,6 @@ function scene.keyDown(key)
|
|||||||
if cur>0 then
|
if cur>0 then
|
||||||
rem(BAG,cur)
|
rem(BAG,cur)
|
||||||
cur=cur-1
|
cur=cur-1
|
||||||
if cur>0 and BAG[cur]==BAG[cur+1]then
|
|
||||||
scene.keyDown("right")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
elseif key=="delete"then
|
elseif key=="delete"then
|
||||||
if sure>.3 then
|
if sure>.3 then
|
||||||
@@ -142,7 +139,7 @@ function scene.draw()
|
|||||||
local count=1
|
local count=1
|
||||||
setFont(25)
|
setFont(25)
|
||||||
repeat
|
repeat
|
||||||
if L[i]==L[i-1]then
|
if L[i]==L[i-1]and i-1~=cur then
|
||||||
count=count+1
|
count=count+1
|
||||||
else
|
else
|
||||||
if count>1 then
|
if count>1 then
|
||||||
|
|||||||
Reference in New Issue
Block a user