mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
incremented versionnumber for permadeath savegames because 48 was already used for the released 077
This commit is contained in:
@@ -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].*");
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -369,7 +369,7 @@ public final class Player extends Actor {
|
||||
}
|
||||
}
|
||||
|
||||
if (fileversion >= 48) {
|
||||
if (fileversion >= 49) {
|
||||
this.id = src.readUTF();
|
||||
this.savedVersion = src.readLong();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user