From 7a8306c829bfddc75d212ee15e5a2aa9b00869b8 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 7 May 2018 08:53:33 +0200 Subject: [PATCH] Hide scores window if no score --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e88b8ef..5a8d83e 100644 --- a/main.py +++ b/main.py @@ -62,8 +62,8 @@ def main(): screen.fill(FONT_COLOR, pygame.Rect(0, MAP_RESOLUTION[1], MAP_RESOLUTION[0], 5)) pygame.display.flip() - - display_scores(scores) + if scores: + display_scores(scores) # Main game loop while True: