[fix] Pressing the quit key really quits now
This commit is contained in:
parent
8ab65eb96a
commit
33bf7ecbe9
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue