Skip to content

Commit

Permalink
version control
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed May 20, 2024
1 parent e481955 commit c8d1ce3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gtav-interactive-map/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const weekday = [
const insertMarkersMode = false;

let saveData = {
version: "0.6.0",
version: "0.7.0",
selectedTileLayer: "game",
lastZoom: 2,
lastCoords: [38.959409, -75.410156],
Expand Down Expand Up @@ -110,6 +110,9 @@ function loadInSaveData(dataStr) {
temporarySaveData.lastPickLDOrganics = "hideAll";
}
if (temporarySaveData.version === "0.6.0") {
temporarySaveData.version = "0.7.0";
}
if (temporarySaveData.version === "0.7.0") {
// Current version
}
// Here you check the version tag in the savedata and modify it to match the data right after - this way old save data will not be lost.
Expand Down

0 comments on commit c8d1ce3

Please sign in to comment.