Skip to content

Commit c34e451

Browse files
committed
修没有消行延迟时,消行的一瞬间方块仍会悬空1f
1 parent 0415efd commit c34e451

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

assets/game/mechanicLib/brik/clearRule.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,16 @@ do -- line (fill row to clear)
6060

6161
function clearRule.line.clear(P,lines)
6262
local F=P.field
63+
local SET=P.settings
6364
local sum=0
6465
local ptr=1
6566
for y=1,F:getHeight() do
6667
if y==lines[ptr] then
6768
sum=sum+1
6869
ptr=ptr+1
69-
elseif sum>0 then
70-
for x=1,P.settings.fieldW do
71-
setBias(P,x,y,0,sum,P.settings.clearMovement,P.settings.clearDelay)
70+
elseif sum>0 and SET.clearDelay>0 then
71+
for x=1,SET.fieldW do
72+
setBias(P,x,y,0,sum,SET.clearMovement,SET.clearDelay)
7273
end
7374
end
7475
end

0 commit comments

Comments
 (0)