incremented versionnumber for permadeath savegames because 48 was already used for the released 077

This commit is contained in:
Gonk
2019-12-20 15:14:36 +01:00
parent 6e0a94898c
commit c9c4c6377e
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public final class AndorsTrailApplication extends Application {
public static final boolean DEVELOPMENT_VALIDATEDATA = true;
public static final boolean DEVELOPMENT_DEBUGMESSAGES = true;
public static final boolean DEVELOPMENT_INCOMPATIBLE_SAVEGAMES = DEVELOPMENT_DEBUGRESOURCES || DEVELOPMENT_DEBUGBUTTONS || DEVELOPMENT_FASTSPEED;
public static final int CURRENT_VERSION = DEVELOPMENT_INCOMPATIBLE_SAVEGAMES ? 999 : 48;
public static final int CURRENT_VERSION = DEVELOPMENT_INCOMPATIBLE_SAVEGAMES ? 999 : 49;
public static final String CURRENT_VERSION_DISPLAY = "0.7.6dev";
public static final boolean IS_RELEASE_VERSION = !CURRENT_VERSION_DISPLAY.matches(".*[a-d].*");

View File

@@ -184,7 +184,7 @@ public final class GameStatistics {
}
this.spentGold = src.readInt();
if (fileversion < 48) return;
if (fileversion < 49) return;
this.startLives = src.readInt();
this.unlimitedSaves = src.readBoolean();

View File

@@ -369,7 +369,7 @@ public final class Player extends Actor {
}
}
if (fileversion >= 48) {
if (fileversion >= 49) {
this.id = src.readUTF();
this.savedVersion = src.readLong();
}

View File

@@ -349,7 +349,7 @@ public final class Savegames {
this.iconID = TileManager.CHAR_HERO_0;
}
if (fileversion >= 48) {
if (fileversion >= 49) {
this.isDead = src.readBoolean();
this.hasUnlimitedSaves = src.readBoolean();
this.playerId = src.readUTF();