mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-05-13 20:21:25 -05:00
SRS-X rotate lock reset behavior fixed
This commit is contained in:
@@ -112,9 +112,9 @@ end
|
|||||||
function SRS:onPieceRotate(piece, grid)
|
function SRS:onPieceRotate(piece, grid)
|
||||||
piece.lock_delay = 0 -- rotate reset
|
piece.lock_delay = 0 -- rotate reset
|
||||||
self:checkNewLow(piece)
|
self:checkNewLow(piece)
|
||||||
piece.rotations = piece.rotations + 1
|
|
||||||
if piece.rotations >= self.ROTATIONS_MAX then
|
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
|
if piece:isDropBlocked(grid) then
|
||||||
piece.locked = true
|
piece.locked = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user