diff --git a/modules/dynamic/auto-update.js b/modules/dynamic/auto-update.js index ecb22ac6..6c280826 100644 --- a/modules/dynamic/auto-update.js +++ b/modules/dynamic/auto-update.js @@ -636,10 +636,4 @@ export function resolveVersionConflicts(version) { if (coa?.shield === "state") delete coa.shield; }); } - - if (version < 1.89) { - //May need a major bump - options.temperatureNorthPole = +temperatureNorthPoleInput.value; - options.temperatureSouthPole = +temperatureNorthPoleInput.value; - } } diff --git a/modules/io/load.js b/modules/io/load.js index 8a6a9e1f..13b2b6e7 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -218,9 +218,13 @@ async function parseLoadedData(data) { if (settings[13]) urbanization = urbanizationInput.value = urbanizationOutput.value = settings[13]; if (settings[14]) mapSizeInput.value = mapSizeOutput.value = minmax(settings[14], 1, 100); if (settings[15]) latitudeInput.value = latitudeOutput.value = minmax(settings[15], 0, 100); - // setting 16 and 17 (temperature) are moved to options if (settings[18]) precInput.value = precOutput.value = settings[18]; + if (settings[19]) options = JSON.parse(settings[19]); + // setting 16 and 17 (temperature) are part of options now + if (settings[16]) options.temperatureEquator = Number(settings[16]); + if (settings[17]) options.temperatureNorthPole = options.temperatureSouthPole = Number(settings[17]); + if (settings[20]) mapName.value = settings[20]; if (settings[21]) hideLabels.checked = +settings[21]; if (settings[22]) stylePreset.value = settings[22];