From f0e84a8874b9e161d414d2749a57591e3a711e61 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 30 Jan 2021 16:54:09 -0500 Subject: [PATCH] SRS-X rotate lock reset behavior fixed --- tetris/rulesets/standard_exp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/rulesets/standard_exp.lua b/tetris/rulesets/standard_exp.lua index 03080d4..bf6738b 100755 --- a/tetris/rulesets/standard_exp.lua +++ b/tetris/rulesets/standard_exp.lua @@ -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