From a1a2ef6aae5b1040804fa4d7f13d3481799e3bba Mon Sep 17 00:00:00 2001 From: eugenep Date: Mon, 31 May 2021 13:37:15 +0200 Subject: [PATCH] misc changes --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a18a252..86ae369 100644 --- a/main.py +++ b/main.py @@ -120,11 +120,11 @@ class Game: self.player.parse_maze_moves() self.i_like_to_move_it() self.wentyl_bezpieczenstwa = 1 - if event.key == pg.K_F3: + if event.key == pg.K_F3 and self.wentyl_bezpieczenstwa == 0: pg.event.clear() player_moves = BFS.run() self.graph_move(player_moves) - #self.wentyl_bezpieczenstwa = 1 + self.wentyl_bezpieczenstwa = 1 if event.key == pg.K_F4 and self.wentyl_bezpieczenstwa == 0: pg.event.clear() #print("test1")