浏览代码

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()
             pygame.quit()
             exit()
             exit()
 
 
+    if not os.path.exists(options.map_file):
+        pygame.quit()
+        exit()
+
     clock.tick(60)
     clock.tick(60)