浏览代码

backwards compatibility

Laserlicht 1 年之前
父节点
当前提交
207b5a2ed0
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/StartInfo.h

+ 4 - 1
lib/StartInfo.h

@@ -143,7 +143,10 @@ struct DLL_LINKAGE StartInfo
 		h & fileURI;
 		h & simturnsInfo;
 		h & turnTimerInfo;
-		h & cheatAllowed;
+		if(version >= 832)
+			h & cheatAllowed;
+		else
+			cheatAllowed = true;
 		h & mapname;
 		h & mapGenOptions;
 		h & campState;