diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-04-09 21:16:04 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-04-09 21:16:04 (GMT) |
commit | 60f84fc9ed101efc0972cfde5a2a5ff09baf6766 (patch) | |
tree | 10fe22934078fd96db1a1cbdfdcec365146e9181 | |
parent | a6a0abae9ae1da08dddd2058836164cdd05198b8 (diff) |
not exit with two esc
-rwxr-xr-x | cells.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -295,9 +295,7 @@ class Game(): self.running = False # and this one is for the "ESC" key if event.type == pygame.KEYDOWN: - if event.key == pygame.K_ESCAPE: - self.running = False - elif self.cell_count == 2 and not self.new_game: + if self.cell_count == 2 and not self.new_game: self.new_game = True if self.new_game == True: |