From 33bf7ecbe9ff37121fc69d05af9bcbfa6e1bd58a Mon Sep 17 00:00:00 2001 From: kleph Date: Wed, 19 Jul 2017 03:46:59 +0200 Subject: [PATCH] [fix] Pressing the quit key really quits now --- 03_map.py | 1 + 1 file changed, 1 insertion(+) diff --git a/03_map.py b/03_map.py index cd9a2d3..c8c100d 100644 --- a/03_map.py +++ b/03_map.py @@ -242,6 +242,7 @@ def on_key_press(symbol, modifiers): if symbol == key.Q: print('Will quit') + sys.exit(0) if symbol == key.R: print('Regeneration') level.regenerate()