SRS-X rotate lock reset behavior fixed

This commit is contained in:
Ishaan Bhardwaj 2021-01-30 16:54:09 -05:00
parent 5e02471fb4
commit f0e84a8874

View File

@ -112,9 +112,9 @@ end
function SRS:onPieceRotate(piece, grid)
piece.lock_delay = 0 -- rotate reset
self:checkNewLow(piece)
piece.rotations = piece.rotations + 1
if piece.rotations >= self.ROTATIONS_MAX then
piece:moveInGrid({ x = 0, y = 1 }, 1, grid)
piece.rotations = piece.rotations + 1
piece:moveInGrid({ x = 0, y = 1 }, 1, grid)
if piece:isDropBlocked(grid) then
piece.locked = true
end