mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 19:19:02 -06:00
SRS-X rotate lock reset behavior fixed
This commit is contained in:
parent
5e02471fb4
commit
f0e84a8874
@ -112,8 +112,8 @@ 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.rotations = piece.rotations + 1
|
||||||
piece:moveInGrid({ x = 0, y = 1 }, 1, grid)
|
piece:moveInGrid({ x = 0, y = 1 }, 1, grid)
|
||||||
if piece:isDropBlocked(grid) then
|
if piece:isDropBlocked(grid) then
|
||||||
piece.locked = true
|
piece.locked = true
|
||||||
|
Loading…
Reference in New Issue
Block a user