소스 검색

Make renderer quit if client exits

Graham Northup 6 년 전
부모
커밋
964ff690b2
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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)