Prechádzať zdrojové kódy

backwards compatibility

Laserlicht 1 rok pred
rodič
commit
207b5a2ed0
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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;