Fix variable name

This commit is contained in:
Gabriel Augendre 2018-04-30 21:01:23 +02:00
parent 1d5b9bd148
commit ab7212babf
No known key found for this signature in database
GPG Key ID: F360212F958357D4
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ def main():
pause = True
while pause:
clock.tick(5)
for event in pygame.event.get():
if event.type == pglocals.KEYDOWN and event.key == pglocals.K_ESCAPE:
for subevent in pygame.event.get():
if subevent.type == pglocals.KEYDOWN and subevent.key == pglocals.K_ESCAPE:
pause = False
break