Explorar o código

Make renderer quit if client exits

Graham Northup %!s(int64=6) %!d(string=hai) anos
pai
achega
964ff690b2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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)