Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
rutra8002 committed Feb 18, 2024
2 parents 0c1c706 + 7458b5d commit 8774f4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import classes.game
import gui.polygonDrawing
import pygame

import settingsSetup
Expand Down Expand Up @@ -193,6 +194,7 @@ def checkifclicked(self, mousepos):
if self.number == 4:
if classes.game.isDrawingModeOn == True:
classes.game.isDrawingModeOn = False
gui.polygonDrawing.clearPoints()

elif classes.game.isDrawingModeOn == False:
classes.game.isDrawingModeOn = True
Expand Down

0 comments on commit 8774f4d

Please sign in to comment.