Merge branch 'master' of github.com:yldrefruz/Fantasy-Map-Generator into gzip-map

This commit is contained in:
Efruz Yıldırır 2023-08-14 15:51:53 +03:00
commit 25a1120245
2 changed files with 5 additions and 3 deletions

View file

@ -639,7 +639,9 @@ export function resolveVersionConflicts(version) {
if (version < 1.91) {
// from v1.90.02 texture image is always there
if (!texture.selectAll("*").size()) {
if (!texture.select("#textureImage").size()) {
// cleanup old texture if it has no id and add new one
texture.selectAll("*").remove();
texture
.append("image")
.attr("id", "textureImage")
@ -706,7 +708,7 @@ export function resolveVersionConflicts(version) {
// leftover from v1.90.02
texture.style("display", null);
const textureImage = texture.select("#textureImage");
if (textureImage) {
if (textureImage.size()) {
const xlink = textureImage.attr("xlink:href");
const href = textureImage.attr("href");
const src = xlink || href;

View file

@ -452,7 +452,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=1.92.02");
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.92.04");
resolveVersionConflicts(versionNumber);
}