mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Bugfix: Do not assume that all saved maps are visited
* Maps that have deactivated spawn areas should be saved, but does not neccessarily have to be visited.
This commit is contained in:
@@ -85,7 +85,6 @@ public final class MovementController implements TimedMessageTask.Callback {
|
||||
}
|
||||
|
||||
private void playerVisitsMapFirstTime(PredefinedMap m) {
|
||||
m.resetForNewGame();
|
||||
m.createAllContainerLoot();
|
||||
world.maps.worldMapRequiresUpdate = true;
|
||||
}
|
||||
|
||||
@@ -240,7 +240,10 @@ public final class PredefinedMap {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fileversion >= 37) visited = true;
|
||||
if (fileversion >= 37) {
|
||||
if (fileversion < 41) visited = true;
|
||||
else visited = src.readBoolean();
|
||||
}
|
||||
|
||||
if (fileversion < 36) lastSeenLayoutHash = "";
|
||||
else lastSeenLayoutHash = src.readUTF();
|
||||
@@ -281,6 +284,7 @@ public final class PredefinedMap {
|
||||
} else {
|
||||
dest.writeBoolean(false);
|
||||
}
|
||||
dest.writeBoolean(visited);
|
||||
dest.writeUTF(lastSeenLayoutHash);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user