Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-04-09 21:16:04 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-04-09 21:16:04 (GMT)
commit60f84fc9ed101efc0972cfde5a2a5ff09baf6766 (patch)
tree10fe22934078fd96db1a1cbdfdcec365146e9181
parenta6a0abae9ae1da08dddd2058836164cdd05198b8 (diff)
not exit with two esc
-rwxr-xr-xcells.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cells.py b/cells.py
index 217cda1..35b1b32 100755
--- a/cells.py
+++ b/cells.py
@@ -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: