Skip to content

Commit b56aa67

Browse files
authored
FIX: Stop allowing flag tiles to be left clicked (#3)
When flags are left clicked they behaved as if they were normal tiles now they are not clickable.
1 parent fd39f6a commit b56aa67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

board.py

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def leftclick(self, pos) -> bool:
184184

185185
if self._inside_board(realx, realy):
186186
tile = self.grid[realx][realy]
187+
if tile.flagged:
188+
return True
189+
187190
if tile.type == TileType.Mine:
188191
tile.type = TileType.Detonation
189192
return False

0 commit comments

Comments
 (0)