diff --git a/game.py b/game.py index 33a3b2b..bb2e7fc 100755 --- a/game.py +++ b/game.py @@ -3,7 +3,7 @@ Avocados and stuff """ -import os, random +import os, random, sys import pygame import avocado, lawyer from pygame.locals import * @@ -133,6 +133,8 @@ class TheGame: # Had enough of this? if event.type == pygame.QUIT: running = False + pygame.quit() + sys.exit() pygame.display.flip()