Skip to content

Commit 348f81f

Browse files
committed
Update block.py
1 parent 4225af3 commit 348f81f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

block.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ def rotate(self):
3030
self.rotation_state = 0
3131

3232
def undo_rotation(self):
33-
if self.rotation_state == 0:
33+
self.rotation_state -= 1
34+
if self.rotation_state == -1:
3435
self.rotation_state = len(self.cells) - 1
35-
else:
36-
self.rotation_state -= 1
3736

3837
def draw(self, screen, offset_x, offset_y):
3938
tiles = self.get_cell_positions()

0 commit comments

Comments
 (0)