mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:49:02 -06:00
SRS-X rotate lock reset behavior fixed
This commit is contained in:
parent
5e02471fb4
commit
f0e84a8874
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user