mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
hotfix: loaded map are not editable
This commit is contained in:
parent
3809d418e2
commit
bc5a981ad1
4 changed files with 11 additions and 4 deletions
|
|
@ -24,6 +24,9 @@
|
|||
font-size: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#map {
|
||||
position: absolute;
|
||||
}
|
||||
#loading > * {
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
|
|
@ -113,7 +116,6 @@
|
|||
id="map"
|
||||
width="100%"
|
||||
height="100%"
|
||||
style="position: absolute"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
|
|
@ -6159,7 +6161,7 @@
|
|||
<script defer src="libs/jszip.min.js"></script>
|
||||
|
||||
<script defer src="modules/io/save.js?v=29052022"></script>
|
||||
<script defer src="modules/io/load.js?v=29052022"></script>
|
||||
<script defer src="modules/io/load.js?v=01062022"></script>
|
||||
<script defer src="modules/io/cloud.js?v=24052022"></script>
|
||||
<script defer src="modules/io/export.js?v=29052022"></script>
|
||||
<script defer src="modules/io/export-json.js"></script>
|
||||
|
|
|
|||
|
|
@ -525,4 +525,9 @@ export function resolveVersionConflicts(version) {
|
|||
// v1.84.0 added grid.cellsDesired to stored data
|
||||
if (!grid.cellsDesired) grid.cellsDesired = rn((graphWidth * graphHeight) / grid.spacing ** 2, -3);
|
||||
}
|
||||
|
||||
if (version < 1.85) {
|
||||
// v1.84.0 moved intial screen out of maon svg
|
||||
svg.select("#initial").remove();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ async function parseLoadedData(data) {
|
|||
{
|
||||
// dynamically import and run auto-udpdate script
|
||||
const versionNumber = parseFloat(params[0]);
|
||||
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=29052022");
|
||||
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=01062022");
|
||||
resolveVersionConflicts(versionNumber);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
// version and caching control
|
||||
|
||||
const version = "1.84.0"; // generator version, update each time
|
||||
const version = "1.84.01"; // generator version, update each time
|
||||
|
||||
{
|
||||
document.title += " v" + version;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue