Fix the drop block lock rotation with SRS
parent
99b15803ee
commit
3947e9f02f
|
@ -25,6 +25,9 @@ function SRS:onPieceRotate(piece, grid, upward)
|
|||
piece.lock_delay = 0 -- rotate reset
|
||||
if upward or piece:isDropBlocked(grid) then
|
||||
piece.manipulations = piece.manipulations + 1
|
||||
if piece:isDropBlocked(grid) then
|
||||
piece.locked = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -93,6 +93,9 @@ function SRS:onPieceRotate(piece, grid, upward)
|
|||
piece.lock_delay = 0 -- rotate reset
|
||||
if upward or piece:isDropBlocked(grid) then
|
||||
piece.rotations = piece.rotations + 1
|
||||
if piece:isDropBlocked(grid) then
|
||||
piece.locked = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -186,6 +186,9 @@ function SRS:onPieceRotate(piece, grid, upward)
|
|||
piece.lock_delay = 0 -- rotate reset
|
||||
if upward or piece:isDropBlocked(grid) then
|
||||
piece.rotations = piece.rotations + 1
|
||||
if piece:isDropBlocked(grid) then
|
||||
piece.locked = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue