Bläddra i källkod

backwards compatibility

Laserlicht 1 år sedan
förälder
incheckning
207b5a2ed0
1 ändrade filer med 4 tillägg och 1 borttagningar
  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;