We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4225af3 commit 348f81fCopy full SHA for 348f81f
1 file changed
block.py
@@ -30,10 +30,9 @@ def rotate(self):
30
self.rotation_state = 0
31
32
def undo_rotation(self):
33
- if self.rotation_state == 0:
+ self.rotation_state -= 1
34
+ if self.rotation_state == -1:
35
self.rotation_state = len(self.cells) - 1
- else:
36
- self.rotation_state -= 1
37
38
def draw(self, screen, offset_x, offset_y):
39
tiles = self.get_cell_positions()
0 commit comments