Save compatibility and updating version in Constants

This commit is contained in:
danielyxie
2017-08-19 20:38:27 -05:00
parent faf19addee
commit 99c220514f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -121,7 +121,8 @@ loadGame = function(saveObj) {
if (saveObj.hasOwnProperty("VersionSave")) {
try {
var ver = JSON.parse(saveObj.VersionSave, Reviver);
if (ver == "0.27.0" || ver == "0.27.1") {
if (ver.startsWith("0.27.")) {
console.log("Evaluating changes needed for version compatibility");
if (Player.bitNodeN == null || Player.bitNodeN == 0) {
Player.bitNodeN = 1;
}