Sfoglia il codice sorgente

Make renderer quit if client exits

Graham Northup 6 anni fa
parent
commit
964ff690b2
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      render.py

+ 4 - 0
render.py

@@ -141,4 +141,8 @@ while True:
             pygame.quit()
             exit()
 
+    if not os.path.exists(options.map_file):
+        pygame.quit()
+        exit()
+
     clock.tick(60)