Explorar el Código

Make renderer quit if client exits

Graham Northup hace 6 años
padre
commit
964ff690b2
Se han modificado 1 ficheros con 4 adiciones y 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)